[Winpcap-users] rpacpd terminates client connection
Marc Andre, Andre-Netline
marc.andre at netline.ch
Fri Dec 5 18:59:04 GMT 2008
No, I still get the same compile errors:
~/winpcap64/winpcap/wpcap/libpcap# make
gcc -O2 -fPIC -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))"
-DHAVE_REMOTE -c ./pcap-linux.c
./pcap-linux.c: In function 'pcap_create':
./pcap-linux.c:322: warning: passing argument 1 of
'pcap_opensource_remote' from incompatible pointer type
./pcap-linux.c:322: error: too many arguments to function
'pcap_opensource_remote'
./pcap-linux.c:322: warning: assignment makes pointer from integer
without a cast
./pcap-linux.c:327: error: 'snaplen' undeclared (first use in this function)
./pcap-linux.c:327: error: (Each undeclared identifier is reported only once
./pcap-linux.c:327: error: for each function it appears in.)
./pcap-linux.c:328: error: 'to_ms' undeclared (first use in this function)
./pcap-linux.c:329: error: 'promisc' undeclared (first use in this function)
./pcap-linux.c:339: error: 'p' undeclared (first use in this function)
./pcap-linux.c: In function 'pcap_read_packet':
./pcap-linux.c:715: error: invalid application of 'sizeof' to incomplete
type 'struct tpacket_auxdata'
make: *** [pcap-linux.o] Error 1
Marc
Gianluca Varenni wrote:
> Can you please try and see if the newest build of WinPcap with x64
> user level support available here
>
> http://www.winpcap.org/install/x64.htm
>
> compiles ok on linux?
>
> Have a nice day
> GV
>
> ----- Original Message ----- From: "Marc Andre, Andre-Netline"
> <marc.andre at netline.ch>
> To: <winpcap-users at winpcap.org>
> Sent: Tuesday, December 02, 2008 11:51 PM
> Subject: [Winpcap-users] rpacpd terminates client connection
>
>
>> Hi
>>
>> I am trying to get rpcapd (4.0.2) running o a linux debian machine with
>> 2.6 Kernel. I could compile the libpcap and rpcapd and it also starts
>> without problem (rpcapd -b <IP> -n). As soon as I connect (with
>> Wireshark or Analyze) I get the error message the the remote host as
>> disconnected and rpcapd shows the message "Child terminated". It looks
>> like the client thread is terminated immediately. I traced the problem
>> down to the pcap_close() function. The thread somewhere crashes in this
>> function. If I (for testing) disable the function call at one place it
>> works until the next time another pcap_close() is called.
>>
>> Settings in Makefile:
>> PSRC = pcap-linux.c
>> FSRC = fad-getad.c
>>
>> Does anybody know a solution? What kind of debugging should I do?
>>
>> I also tried to get rpcapd (4.1 beta4) working, but I can't compile
>> libpcap:
>> ./pcap-linux.c: In function 'pcap_create':
>> ./pcap-linux.c:306: warning: passing argument 1 of
>> 'pcap_opensource_remote' from incompatible pointer type
>> ./pcap-linux.c:306: error: too many arguments to function
>> 'pcap_opensource_remote'
>> ./pcap-linux.c:306: warning: assignment makes pointer from integer
>> without a cast
>> ./pcap-linux.c:311: error: 'snaplen' undeclared (first use in this
>> function)
>> ./pcap-linux.c:311: error: (Each undeclared identifier is reported
>> only once
>> ./pcap-linux.c:311: error: for each function it appears in.)
>> ./pcap-linux.c:312: error: 'to_ms' undeclared (first use in this
>> function)
>> ./pcap-linux.c:313: error: 'promisc' undeclared (first use in this
>> function)
>> ./pcap-linux.c:323: error: 'p' undeclared (first use in this function)
>> make: *** [pcap-linux.o] Error 1
>>
>> -Marc
>>
>> _______________________________________________
>> Winpcap-users mailing list
>> Winpcap-users at winpcap.org
>> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
--
Marc André, André-Netline
eBusiness-Solutions
André-Netline
Könizstr. 161
CH-3097 Liebefeld
Tel. 031 974 16 66
Fax: 031 974 16 65
marc.andre at netline.ch
http://www.netline.ch
More information about the Winpcap-users
mailing list