Subject: Re: [tcpdump-workers] fddipad on NetBSD
To: None <tcpdump-workers@lists.tcpdump.org>
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
List: tech-net
Date: 04/06/2005 23:36:38
-----BEGIN PGP SIGNED MESSAGE-----
>>>>> "Guy" == Guy Harris <guy@alum.mit.edu> writes:
>> I'd like to make sure that libpcap 0.9.1-096 compiles on NetBSD
>> 1.6. It appears that the test for fddipad says
>> defined(__NetBSD__), but that member must have been introduced in
>> a post-1.6 version of NetBSD.
Guy> Actually, the problem appears to be that PCAP_FDDIPAD is
Guy> defined in pcap-int.h *after* it's used, so that the fddipad
Guy> member isn't #defined into the pcap structure even if
Hmm. okay... maybe. I didn't look as close as that, which is why I
asked.
Guy> If all versions of NetBSD put those 3 bytes of padding into
Guy> FDDI packets supplied to BPF, then the definition of
Guy> PCAP_FDDIPAD shouldn't be based on the NetBSD version - and if
Guy> not all of them do, a run-time test using the result of
Guy> "uname()" should be done.
I can't find FDDIPAD in anything under /usr/include on my system.
Guy> elsewhere (or perhaps the code didn't even compile on those
Guy> versions - did you try it on 2.0, for example?). - This is the
I have yet to upgrade anything to 2.0, which is on my todo list.
- --
] Michael Richardson Xelerance Corporation, Ottawa, ON | firewalls [
] mcr @ xelerance.com Now doing IPsec training, see |net architect[
] http://www.sandelman.ca/mcr/ www.xelerance.com/training/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Finger me for keys
iQCVAwUBQlSqw4qHRg3pndX9AQFcYAP+KXln6V2HdHWXEpSBAbUb/9Dz3v7wEA0t
gpJmI67URy23FYhNEWnkTVVq1YY73hRO9hSWeh1Lv1R4EVaa7mWfNAPhPh+O7boI
SwRqPLxFYJHrR7UiPKA/19r+UB0o6LBdqGlO+4emnFHMTCF/32EPGbbFSErn4IkD
l7ieFVJZ58c=
=Th50
-----END PGP SIGNATURE-----