NetBSD Problem Report #41121
From darrenr@netbsd.org Wed Apr 1 19:15:32 2009
Return-Path: <darrenr@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 53FBC63B8C8
for <gnats-bugs@gnats.NetBSD.org>; Wed, 1 Apr 2009 19:15:32 +0000 (UTC)
Message-Id: <20090401191532.3CFE963B1F8@mail.netbsd.org>
Date: Wed, 1 Apr 2009 19:15:32 +0000 (UTC)
From: darrenr@netbsd.org
Reply-To: darrenr@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
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
>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:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.