-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

tags 407435 patch
retitle 407435 [amd64]arp-discovery fails due to broken libpcap;laptop-net does 
not set the appropriate scheme
thanks

Eddy Petrișor wrote:
> Eddy Petrior wrote:

>> 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>
> 

I attached a patch which implements the change I proposed and fixes
the issue I encountered (this is a patch against laptop-net 2.26-7.1).

Since the 0.8 version added some changes I have checked the following:

[EMAIL PROTECTED] ~/usr/src/laptop-net/laptop-net-2.26 $ grep -R -E
"(pcap_next_ex|pcap_breakloop|pcap_dump_flush|pcap_list_datalinks|pcap_set_datalink|pcap_lib_version|pcap_datalink_val_to_name|pcap_datalink_name_to_val)"
*

since the changelog said:
Wed.   November 12, 2003. [EMAIL PROTECTED] Summary for
0.8 release

        added pcap_findalldevs()
        Win32 patches from NetGroup, Politecnico di Torino (Italy)
        OpenBSD pf, DLT_PFLOG added
        Many changes to ATM support.
        lookup pcap_lookupnet()
        Added DLT_ARCNET_LINUX, DLT_ENC, DLT_IEEE802_11_RADIO, DLT_SUNATM,
                DLT_IP_OVER_FC, DLT_FRELAY, others.
        Sigh.  More AIX wonderfulness.
        Document updates.
        Changes to API: pcap_next_ex(), pcap_breakloop(), pcap_dump_flush(),
                        pcap_list_datalinks(), pcap_set_datalink(),
                        pcap_lib_version(), pcap_datalink_val_to_name(),
                        pcap_datalink_name_to_val(), new error returns.


Later changelog entries say:
Tue.    July 5, 2005.  [EMAIL PROTECTED] Summary for 0.9.3 libpcap
release

        Fixes for compiling on nearly every platform,
                including improved 64bit support
        MSDOS Support
        Add support for sending packets
        OpenBSD pf format support
        IrDA capture (Linux only)

Tue.   March 30, 2004. [EMAIL PROTECTED] Summary for 3.8.3
release

        Fixed minor problem in gencode.c that would appear on 64-bit
        platforms.
        Version number is now sane.


I suspect these two releases are the main reason why arp-discovery
works when linked against libpcap0.8 and doesn't on libpcap0.7.

Also note that it appears that the configure script of laptop-net
ignores completely libpcap, but the compilation fails if either of
the libpcap*-dev are not present.

- -- 
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF5gCRY8Chqv3NRNoRAr+GAKCVbpVUYOwH19wvvGoKTBctYi/csACgkgCw
LZH+dEr7N0RUz5KnWag578E=
=5z4y
-----END PGP SIGNATURE-----
Wed Feb 28 23:54:16 EET 2007  Eddy Petrișor <[EMAIL PROTECTED]>
  * build depend on libpcap0.8-dev instead of libpcap-dev to fix #407435
diff -rN -u old-laptop-net/laptop-net-2.26/debian/changelog new-laptop-net/laptop-net-2.26/debian/changelog
--- old-laptop-net/laptop-net-2.26/debian/changelog	2007-02-28 23:59:37.000000000 +0200
+++ new-laptop-net/laptop-net-2.26/debian/changelog	2007-02-28 23:59:37.000000000 +0200
@@ -1,3 +1,12 @@
+laptop-net (2.26-7.2) unstable; urgency=low
+
+  * build depend on libpcap0.8-dev instead of libpcap-dev since the older
+    version has problems on amd64 which leads to arp-discovery not being
+    performed properly, thus to inability to automatically select schemes
+    (Closes: #407435)
+
+ -- Eddy Petrișor <[EMAIL PROTECTED]>  Wed, 28 Feb 2007 23:50:24 +0200
+
 laptop-net (2.26-7.1) unstable; urgency=low
 
   * Non-maintainer upload to fix pending l10n bugs.
diff -rN -u old-laptop-net/laptop-net-2.26/debian/control new-laptop-net/laptop-net-2.26/debian/control
--- old-laptop-net/laptop-net-2.26/debian/control	2007-02-28 23:59:37.000000000 +0200
+++ new-laptop-net/laptop-net-2.26/debian/control	2007-02-28 23:59:37.000000000 +0200
@@ -2,7 +2,7 @@
 Section: net
 Priority: optional
 Maintainer: Al Stone <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.1.46), cdbs (>= 0.4.6), libnet1-dev, libpcap-dev, tetex-bin, texi2html, texinfo, tetex-extra
+Build-Depends: debhelper (>= 4.1.46), cdbs (>= 0.4.6), libnet1-dev, libpcap0.8-dev, tetex-bin, texi2html, texinfo, tetex-extra
 Standards-Version: 3.7.2
 
 Package: laptop-net



Reply via email to