Hi,

I downloaded libpcap 0.7.1, and tried to build on my (almost ancient)
Linux kernel 2.0.39, and stumbled across a little glitch.

On Linux 2.0.* /usr/include/linux/if_arp.h doesn't define
'ARPHRD_HDLC', it appears somewhere before Linux 2.2.20.
It's defined in Linux 2.2.20 as:
#define ARPHRD_HDLC 513

My small workaround (at least to get libpcap to compile) was:
jpv@jp-gp: /usr/src/libpcap-0.7.1 # diff -u pcap-linux.c- pcap-linux.c
--- pcap-linux.c-       Mon Dec 10 08:14:16 2001
+++ pcap-linux.c        Sun Feb  3 12:06:22 2002
@@ -976,6 +976,9 @@
                handle->linktype = DLT_LINUX_SLL;
                break;
 
+#ifndef ARPHRD_HDLC
+#define ARPHRD_HDLC 513        /* From Linux 2.2.20 */
+#endif
        case ARPHRD_HDLC:
                handle->linktype = DLT_C_HDLC;
                break;

I couldn't find anything in CVS about this, but did see a more similar
one concerning an ARPHRD_FDDI (IIRC) which didn't exist in Linux 2.2.x
but did in Linux 2.4.x ... It used a similar workaround...

Regards,
JP Velders

PS: I'm not subscribed to this list, if you need more info, just CC me
    (and indicate if it's necessary to CC the list ;) )
    OK, now back to tweaking tcpdump's configure.in to nicely detect
    OpenSSL in a 'non-standard' place... ;)

-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to