NetBSD-Bugs archive

[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



>Number:         41121
>Category:       kern
>Synopsis:       <net/dlt.h> needs to be realigned with tcudmp disto
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 01 19:20:01 +0000 2009
>Originator:     Darren Reed
>Release:        NetBSD 4.0_STABLE
>Organization:
NetBSD
>Environment:
        
        
System: NetBSD homeworld.netbsd.org 4.0_STABLE NetBSD 4.0_STABLE (NBMAIL) #1: 
Fri Sep 5 16:31:35 UTC 2008 
root@ADMIN:/usr/obj/sys/arch/i386/compile.i386/NBMAIL i386
Architecture: i386
Machine: i386
>Description:
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.
>How-To-Repeat:
        
>Fix:
        

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index