On Mon, Jan 21, 2002 at 06:48:53AM -0500, Michael Richardson wrote:
> In file included from ../libpcap/pcap.h:43,
>                  from ./addrtoname.c:50:
> ../libpcap/net/bpf.h:209: warning: `DLT_SLIP_BSDOS' redefined
> /usr/include/net/dlt.h:63: warning: this is the location of the previous definition
> ../libpcap/net/bpf.h:210: warning: `DLT_PPP_BSDOS' redefined
> /usr/include/net/dlt.h:64: warning: this is the location of the previous definition
> 
>   but not on RH or Debian.
> 
>   Should we throw in an #ifdef?

That's probably the right answer; presumably you mean something such as

        #ifdef __NetBSD__
        #define DLT_SLIP_BSDOS  13      /* BSD/OS Serial Line IP */
        #define DLT_PPP_BSDOS   14      /* BSD/OS Point-to-point Protocol */
        #else
        #define DLT_SLIP_BSDOS  15      /* BSD/OS Serial Line IP */
        #define DLT_PPP_BSDOS   16      /* BSD/OS Point-to-point Protocol */
        #endif

The current top-of-tree CVS <net/bpf.h> in both FreeBSD and OpenBSD use
the BSD/OS values of 15 and 16; unfortunately, NetBSD uses them for
other purposes, so it can't change.
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to