NetBSD Problem Report #41121

From  Wed Apr  1 19:15:32 2009
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 53FBC63B8C8
	for <>; Wed,  1 Apr 2009 19:15:32 +0000 (UTC)
Message-Id: <>
Date: Wed,  1 Apr 2009 19:15:32 +0000 (UTC)
Subject: <net/dlt.h> needs to be realigned with tcpdump distro
X-Send-Pr-Version: 3.95

>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

System: NetBSD 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
NetBSD has defined at least two DLT types, DLT_HIPPI and DLT_HDLC
that do not appear in the upstream ( 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 to agree on numbers for ones we have but they don't.



NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.