On Sun, Feb 03, 2002 at 01:09:42PM +0100, Jan-Philip Velders wrote: > 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:
You might want to send patches as attachments; it appears your mail program "helpfully" converted tabs to spaces, so the patch didn't apply directly - sending them as attachments may make your mail program leave them as is. I've checked it into the main CVS branch and the x.7 CVS branch (so that it should appear in the next 0.7.x release). > 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... No, ARPHRD_FDDI did exist at least as of 2.2.13 (the oldest 2.2[.x]kernel whose sources I have handy); however, it didn't exist in 2.0, so I put in a workaround for that. (It presumably existed in later 2.0[.x] releases, as nobody's reported a problem with it, as far as I know - but one might as well be prepared for it anyway, and put in a workaround>) There are some other workarounds for ARPHRD_ values that didn't exist in all 2.2[.x] kernels, as well as some for ARPHRD_ values that didn't exist until 2.4[.x], e.g. ARPHRD_IEEE802_TR (which the Token Ring drivers started using in 2.4[.x], causing older libpcaps, including the ones shipped with many Linux distributions, to stop supporting Token Ring, grumble grumble), ARPHRD_IEEE80211, and ARPHRD_SIT. - 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
