[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/41121: <net/dlt.h> needs to be realigned with tcpdump distro
>Synopsis: <net/dlt.h> needs to be realigned with tcudmp disto
>Arrival-Date: Wed Apr 01 19:20:01 +0000 2009
>Originator: Darren Reed
>Release: NetBSD 4.0_STABLE
System: NetBSD homeworld.netbsd.org 4.0_STABLE NetBSD 4.0_STABLE (NBMAIL) #1:
Fri Sep 5 16:31:35 UTC 2008
NetBSD has defined at least two DLT types, DLT_HIPPI and DLT_HDLC
that do not appear in the upstream (tcpdump.org) bpf.h file that
lists all of the various DLTs supported by libpcap.
From our <net/dlt.h> file:
#define DLT_HIPPI 15 /* HIPPI */
#define DLT_HDLC 16 /* HDLC framing */
For all platforms aside from FreeBSD and NetBSD, libpcap has this:
#define DLT_SLIP_BSDOS 15 /* BSD/OS Serial Line IP */
#define DLT_PPP_BSDOS 16 /* BSD/OS Point-to-point Protocol */
... for which we use 13 & 14.
It is probably worthwhile taking the time to work through all of the
defines in <net/dlt.h>, bring in ones that aren't there and work with
tcpdump.org to agree on numbers for ones we have but they don't.
Main Index |
Thread Index |