sipcapture / sipgrep

SIPGREP: Display and Troubleshoot SIP signaling over IP networks in console
http://www.sipcapture.org
GNU General Public License v3.0
165 stars 46 forks source link

fatal: unsupported interface type 113 #26

Closed ultraboby closed 8 years ago

ultraboby commented 8 years ago

I start sipgrep with folowing command:

sipgrep -d any '^(INVITE|INFO)' -P 5060-5080

sipgrep: V2.2.0 CentOS Linux release 7.1.1503 libpcap-1.5.3-8.el7.x86_64

adubovikov commented 8 years ago

can you please install lipcap-dev as well ?

ultraboby commented 8 years ago

libpcap-devel-1.5.3-8.el7.x86_64 already installed and latest version

adubovikov commented 8 years ago

can you do: grep -R DLT_LINUX_SLL /usr/include/

and show a result

ultraboby commented 8 years ago

/usr/include/pcap/sll.h: * handle DLT_LINUX_SLL captures will continue to handle them correctly /usr/include/pcap/sll.h: * A DLT_LINUX_SLL fake link-layer header. /usr/include/pcap/bpf.h: * sometimes it isn't.) We currently handle it as DLT_LINUX_SLL, /usr/include/pcap/bpf.h:#define DLT_LINUX_SLL 113

adubovikov commented 8 years ago

and in the source directory after configure can you do "grep HAVE_DLT_LINUX_SLL *.log"

On 16 March 2016 at 14:00, ultraboby notifications@github.com wrote:

/usr/include/pcap/sll.h: * handle DLT_LINUX_SLL captures will continue to handle them correctly /usr/include/pcap/sll.h: * A DLT_LINUX_SLL fake link-layer header. /usr/include/pcap/bpf.h: * sometimes it isn't.) We currently handle it as DLT_LINUX_SLL, /usr/include/pcap/bpf.h:#define DLT_LINUX_SLL 113

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/sipcapture/sipgrep/issues/26#issuecomment-197311109

adubovikov commented 8 years ago

sorry: grep HAVE_DLT_LINUX_SLL *.h

ultraboby commented 8 years ago

nothing ?!

adubovikov commented 8 years ago

as workaround, please add to config.h

define HAVE_DLT_LINUX_SLL 1

ultraboby commented 8 years ago

no difference

adubovikov commented 8 years ago

weird ok, please add this as additional string to the config.h

define DLT_LINUX_SLL 113

ultraboby commented 8 years ago

the same error ..

adubovikov commented 8 years ago

you do something wrong, because this is only things that generate the error. if the parameters has been defined , the error should be disappeared.

you can put these parameters to the sipgrep.c and try again.

ultraboby commented 8 years ago

sorry but this not work in my server ..

I see this when start make command

sipparse.c: In function ‘set_hname’: sipparse.c:43:12: warning: comparison of distinct pointer types lacks a cast [enabled by default] for (; s < end; s++) {

ultraboby commented 8 years ago

The same problem on centos 6.7 fresh install ..

lmangani commented 8 years ago

warning reproduced, standby for a patch but should not impact functionality

adubovikov commented 8 years ago

can you please try again ? get the last git

ultraboby commented 8 years ago

It's OK now.

Thank you!

wolfru68 commented 5 years ago

There was the same error when collecting. [root@kv-dkweb-02 sipgrep-master]# make Making all in src make[1]: Entering directory /home/toor/SRC/sipgrep-master/src' make all-am make[2]: Entering directory/home/toor/SRC/sipgrep-master/src' gcc -DHAVE_CONFIG_H -I. -g -O2 -MT sipgrep.o -MD -MP -MF .deps/sipgrep.Tpo -c -o sipgrep.o sipgrep.c mv -f .deps/sipgrep.Tpo .deps/sipgrep.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -MT log.o -MD -MP -MF .deps/log.Tpo -c -o log.o log.c mv -f .deps/log.Tpo .deps/log.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -MT ipreasm.o -MD -MP -MF .deps/ipreasm.Tpo -c -o ipreasm.o ipreasm.c mv -f .deps/ipreasm.Tpo .deps/ipreasm.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -MT tcpreasm.o -MD -MP -MF .deps/tcpreasm.Tpo -c -o tcpreasm.o tcpreasm.c mv -f .deps/tcpreasm.Tpo .deps/tcpreasm.Po gcc -DHAVE_CONFIG_H -I. -g -O2 -MT sipparse.o -MD -MP -MF .deps/sipparse.Tpo -c -o sipparse.o sipparse.c gcc -DHAVE_CONFIG_H -I. -g -O2 -MT sipparse.o -MD -MP -MF .deps/sipparse.Tpo -c -o sipparse.o sipparse.c sipparse.c: In function ‘set_hname’: sipparse.c:43:12: warning: comparison of distinct pointer types lacks a cast [enabled by default] for (; s < end; s++) { ^ mv -f .deps/sipparse.Tpo .deps/sipparse.Po [root@kv-dkweb-02 sipgrep-master]# cat /etc/centos-release CentOS Linux release 7.6.1810 (Core)

adubovikov commented 5 years ago

sorry, I don't see any error, only warning... can you be a bit more specific ?

wolfru68 commented 5 years ago

ask questions i will try to answer. I can send a protocol [root@kv-dkweb-02 sipgrep-master]# script make.txt

adubovikov commented 5 years ago

sorry, what are you trying to say ? I am very glad that you can do copy & paste, but if you couldnt explain , please dont spam... Thank you

wolfru68 commented 5 years ago

I tell that there is an error when compiling the code. I can remove the protocol if it is not needed.

gcc -DHAVE_CONFIG_H -I. -g -O2 -MT sipparse.o -MD -MP -MF .deps/sipparse.Tpo -c -o sipparse.o sipparse.c sipparse.c: In function ‘set_hname’: sipparse.c:43:12: warning: comparison of distinct pointer types lacks a cast [enabled by default] for (; s < end; s++) { ^

adubovikov commented 5 years ago

I dont see any error , can you be more specific ?

wolfru68 commented 5 years ago

sory . I realized. confused quick completion