From owner-freebsd-bugs Fri Oct 2 10:00:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA00894 for freebsd-bugs-outgoing; Fri, 2 Oct 1998 10:00:19 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA00807 for ; Fri, 2 Oct 1998 10:00:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id KAA09701; Fri, 2 Oct 1998 10:00:01 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA29242 for ; Fri, 2 Oct 1998 09:54:27 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id LAA02996; Fri, 2 Oct 1998 11:54:08 -0500 (CDT) Message-Id: <199810021654.LAA02996@dan.emsphone.com> Date: Fri, 2 Oct 1998 11:54:08 -0500 (CDT) From: Dan Nelson To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8130: tcpdump can't use NIS ether maps Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8130 >Category: bin >Synopsis: tcpdump can't use NIS ether maps (patch included) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 2 10:00:00 PDT 1998 >Last-Modified: >Originator: Dan Nelson >Organization: Executive Marketing Services, Inc. >Release: FreeBSD 2.2.7-STABLE i386 >Environment: FreeBSD dan.emsphone.com 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Sat Aug 8 15:03:34 CDT 1998 dan@dan.emsphone.com:/usr/src/sys/compile/DAN i386 >Description: A configuration define is wrong, causing tcpdump to think that the ether_ntohost function doesn't exist. It ends up reading /etc/ethers directly, which is bad if your ether tables are distributed via NIS. >How-To-Repeat: put your /etc/ethers file in NIS, run tcpdump -e, notice that all your ethernet addresses aren't resolved. >Fix: Index: tcpdump/Makefile =================================================================== RCS file: /home/ncvs/src/usr.sbin/tcpdump/tcpdump/Makefile,v retrieving revision 1.14.2.1 diff -u -r1.14.2.1 Makefile --- Makefile 1997/12/31 21:51:55 1.14.2.1 +++ Makefile 1998/07/23 19:34:49 @@ -2,7 +2,7 @@ PROG= tcpdump CFLAGS+=-DHAVE_FCNTL_H=1 -DHAVE_NET_SLIP_H=1 -DTIME_WITH_SYS_TIME=1 \ - -DHAVE_ETHER_NTOA=1 -DHAVE_SETLINEBUF=1 -DSTDC_HEADERS=1 \ + -DHAVE_ETHER_NTOHOST=1 -DHAVE_SETLINEBUF=1 -DSTDC_HEADERS=1 \ -DRETSIGTYPE=void -DRETSIGVAL= -DHAVE_SOCKADDR_SA_LEN=1 \ -DHAVE_TM_GMTOFF=1 -DLBL_ALIGN=1 -DPPP -DHAVE_FDDI MAN1= tcpdump.1 (the code doesn't check for ETHER_NTOA at all, so it must have been typoed at some point) -Dan Nelson dnelson@emsphone.com >Audit-Trail: >Unformatted: Dan Nelson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message