-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Eddy Petrișor wrote: > Eddy Petrior wrote: > >> It seems there is something wrong with >> /usr/lib/laptop-net/arp-discovery: > >> bounty:/home/eddy/usr/src/laptop-net/laptop-net-2.26# >> /usr/lib/laptop-net/arp-discovery eth0 /etc/laptop-net/ip-map ; echo >> "ERROR = $?" >> @NO-RESPONSES@ >> ERROR = 0 > > This looks like a deterministic problem :-/ (well, probably is a > initialization issue)... > > I have tried to see what happens (and complied the package with > -DDEBUGGING_OUTPUT), which packages are generated and fired up > tshark on a console while running by hand arp-discovery, and behold, > the answer came right away: > > bounty:/home/eddy/usr/src/laptop-net/laptop-net-2.26/src# > ./arp-discovery eth0 /etc/laptop-net/ip-map > 00 15 c5 bb a3 23 > addr=3239607126 > target->s_addr = 3239607126 source->s_addr = 0 > addr=4266502336 > target->s_addr = 4266502336 source->s_addr = 0 > addr=4261521600 > target->s_addr = 4261521600 source->s_addr = 0 > addr=16779786 > target->s_addr = 16779786 source->s_addr = 0 > addr=1275988490 > target->s_addr = 1275988490 source->s_addr = 0 > addr=537790986 > target->s_addr = 537790986 source->s_addr = 0 > addr=370084362 > target->s_addr = 370084362 source->s_addr = 0 > > ff ff ff ff ff ff 00 15 c5 bb a3 23 08 06 00 01 > 08 00 06 04 00 01 00 15 c5 bb a3 23 00 00 00 00 > 00 00 00 00 00 00 56 7b 18 c1 > > ff ff ff ff ff ff 00 15 c5 bb a3 23 08 06 00 01 > 08 00 06 04 00 01 00 15 c5 bb a3 23 00 00 00 00 > 00 00 00 00 00 00 c0 a8 4d fe > > 00 15 c5 bb a3 23 00 0f 66 7f ab a0 08 06 00 01 > 08 00 06 04 00 02 00 0f 66 7f ab a0 c0 a8 4d fe > 00 0f 66 7f ab a0 c0 a8 4d fe > 00:0f:66:7f:ab:a0 c0 a8 4d fe > ritter > > If tshark is not started, the response doesn't come, so this looks > like either a deterministic problem (want to measure, phenomena > disappears ;-) or an initialization issue and tshark does the > initialization job for arp-discovery. > > [...] > ff ff ff ff ff ff 00 15 c5 bb a3 23 08 06 00 01 > 08 00 06 04 00 01 00 15 c5 bb a3 23 00 00 00 00 > 00 00 00 00 00 00 0a 0a 0e 20 > > ff ff ff ff ff ff 00 15 c5 bb a3 23 08 06 00 01 > 08 00 06 04 00 01 00 15 c5 bb a3 23 00 00 00 00 > 00 00 00 00 00 00 0a 0a 0f 16 > > ff ff ff ff ff ff 00 0f 66 7f ab a0 08 06 00 01 > 08 00 06 04 00 01 00 0f 66 7f ab a0 c0 a8 4d fe > 00 00 00 00 00 00 c0 a8 4d 6f > > 00 0f 66 7f ab a0 00 15 c5 bb a3 23 08 06 00 01 > 08 00 06 04 00 02 00 15 c5 bb a3 23 c0 a8 4d 6f > 00 0f 66 7f ab a0 c0 a8 4d fe > 00:15:c5:bb:a3:23 c0 a8 4d 6f > @NO-RESPONSES@ > > > I am not sure if this has anything to do with the pcap library which > arp-discovery uses (0.7) as opposed to tshark's 0.8 (0.9.5). > > I will try to look deeper into this.
It appears that linking laptop-net with libcap0.8 fixes the issue. Also, note that on the upstream pcap homepage, 0.8 is mentioned to fix some 64 bit issue[1]: <quote> LIBPCAP 0.8.3 LIBPCAP version 0.8.3 has been released as of March 30, 2004. 0.8.3 fixes a minor problem with gencode.c on 64-bit architectures. It also carries the correct version numbers. </quote> [1] http://www.tcpdump.org/ - -- Regards, EddyP ============================================= "Imagination is more important than knowledge" A.Einstein -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF5ceCY8Chqv3NRNoRAiXdAJ92nlquWSiWr64RqSLVGl9UlavV8wCeIy23 UVLSsI13T5xlRkRFNpHeSlY= =0Cmu -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

