Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Oct 1998 11:54:08 -0500 (CDT)
From:      Dan Nelson <dnelson@emsphone.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/8130: tcpdump can't use NIS ether maps
Message-ID:  <199810021654.LAA02996@dan.emsphone.com>

index | next in thread | raw e-mail


>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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810021654.LAA02996>