From owner-freebsd-bugs@FreeBSD.ORG Thu Nov 6 00:50:36 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1519516A4CF for ; Thu, 6 Nov 2003 00:50:36 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A55F4400F for ; Thu, 6 Nov 2003 00:50:24 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id hA68oOFY094806 for ; Thu, 6 Nov 2003 00:50:24 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id hA68oOmL094805; Thu, 6 Nov 2003 00:50:24 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 6 Nov 2003 00:50:24 -0800 (PST) Resent-Message-Id: <200311060850.hA68oOmL094805@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, gharris@sonic.net Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D07816A4CE for ; Thu, 6 Nov 2003 00:48:49 -0800 (PST) Received: from eth0.a.smtp.sonic.net (eth0.a.smtp.sonic.net [64.142.16.244]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9301043FEC for ; Thu, 6 Nov 2003 00:48:48 -0800 (PST) (envelope-from gharris@sonic.net) Received: from quadrajet.sonic.net (adsl-209-204-185-249.sonic.net [209.204.185.249])hA68mmlS023193 for ; Thu, 6 Nov 2003 00:48:48 -0800 Received: (from guy@localhost) by quadrajet.sonic.net (8.9.3/8.9.3) id AAA09052; Thu, 6 Nov 2003 00:48:47 -0800 (PST) (envelope-from gharris) Message-Id: <200311060848.AAA09052@quadrajet.sonic.net> Date: Thu, 6 Nov 2003 00:48:47 -0800 (PST) From: Guy Harris To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.2 Subject: misc/58992: libpcap has BIOCGDLTLIST stuff but no DLT-name <-> DLT-value APIs X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: gharris@sonic.net List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2003 08:50:36 -0000 >Number: 58992 >Category: misc >Synopsis: libpcap has BIOCGDLTLIST stuff but no DLT-name <-> DLT-value APIs >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 06 00:50:23 PST 2003 >Closed-Date: >Last-Modified: >Originator: Guy Harris >Release: FreeBSD 5.1-RELEASE i386 >Organization: none >Environment: >Description: 5.1 includes support for the libpcap APIs to get a list of DLT_ values supported by a device and to set the DLT_ value to be used, at least from looking at the CVS information for the libpcap source. However, it doesn't include the "pcap_datalink_name_to_val()" and "pcap_datalink_val_to_name()" APIs from tcpdump.org libpcap to map DLT_ names to values and vice versa (e.g., DLT_EN10MB <-> "EN10MB"), for use by programs such as tcpdump and Tethereal. >How-To-Repeat: See the CVS source. >Fix: Pick them up from tcpdump.org's libpcap. >Release-Note: >Audit-Trail: >Unformatted: