new code on the server rc.40

Christoph Badura bad at bsd.de
Tue Feb 27 17:14:21 EST 2007


On Tue, Feb 27, 2007 at 08:30:57AM -0800, Peter Van Epp wrote:
> ! #if !defined(__NetBSD__)
>   #define DLT_SLIP_BSDOS	15	/* BSD/OS Serial Line IP */
>   #define DLT_PPP_BSDOS	16	/* BSD/OS Point-to-point Protocol */
>   #endif
> --- 176,182 ----
> ! #if !defined(__NetBSD__) && !defined(__FreeBSD__)
>   #define DLT_SLIP_BSDOS	15	/* BSD/OS Serial Line IP */
>   #define DLT_PPP_BSDOS	16	/* BSD/OS Point-to-point Protocol */
>   #endif

Hmm, if we don't care about the actual value of those defines, wouldn't
we be better off with:

#if !defined(DLT_SLIP_BSDOS)
#define DLT_SLIP_BSDOS      15      /* BSD/OS Serial Line IP */
#endif
#if !defined(DLT_PPP_BSDOS)
#define DLT_PPP_BSDOS       16      /* BSD/OS Point-to-point Protocol */
#endif

That should take care of all OSes and OS versions.
--chris



More information about the argus mailing list