From: Ted Lemon Date: Sat, 13 Feb 1999 19:36:40 +0000 (+0000) Subject: Use DLPI on sparc, sockets on i386. X-Git-Tag: V2-BETA-1-PATCH-12~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a01dd1b658495d0c2555a08f73fc96e60b3aab9;p=thirdparty%2Fdhcp.git Use DLPI on sparc, sockets on i386. --- diff --git a/includes/cf/sunos5-5.h b/includes/cf/sunos5-5.h index 6917cd5b7..be1b3a6f0 100644 --- a/includes/cf/sunos5-5.h +++ b/includes/cf/sunos5-5.h @@ -117,13 +117,20 @@ extern int h_errno; #define NEED_INET_ATON -/* By default, use BSD Socket API for receiving and sending packets. - This actually works pretty well on Solaris, which doesn't censor - the all-ones broadcast address. */ #if defined (USE_DEFAULT_NETWORK) -# define USE_DLPI -/* # define USE_DLPI_RAW */ -# define USE_DLPI_PFMOD +# if defined (__sparc) +/* On sparc systems, use the DLPI API, which allows multiple interfaces + to be supported. DLPI is currently buggy on non-sparc machines. + It's unclear whether this is an O.S. bug or an endianness bug in + the DLPI code. */ +# define USE_DLPI +# define USE_DLPI_PFMOD +# else +/* On non-sparc systems, use BSD Socket API for receiving and sending + packets. This actually works pretty well on Solaris, which doesn't + censor the all-ones broadcast address. */ +# define USE_SOCKETS +# endif /* defined (__sparc) */ #endif #define USE_POLL