revision 1.118
date: 2006-05-11 19:14:55 -0700; author: guy; state: Exp; lines: +2 -2
"ether.h" defines more than we need, and, on some platforms, redefines
ether_header (which is one of the things we don't need). Just define
ETHER_ADDR_LEN to 6 if it's not defined - it can't be anything but 6.
to the x.9 branch, to fix build problems on Solaris.
*/
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.108.2.8 2006-02-27 07:27:16 hannes Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.108.2.9 2007-09-14 00:26:18 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
#include "oui.h"
#ifndef ETHER_ADDR_LEN
-#include "ether.h"
+#define ETHER_ADDR_LEN 6
#endif
/*
register char *cp;
register struct enamemem *tp;
- if (len == 6) /* XXX not totally correct... */
+ if (len == ETHER_ADDR_LEN) /* XXX not totally correct... */
return etheraddr_string(ep);
tp = lookup_bytestring(ep, len);