From 3a01dd1b658495d0c2555a08f73fc96e60b3aab9 Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Sat, 13 Feb 1999 19:36:40 +0000 Subject: [PATCH] Use DLPI on sparc, sockets on i386. --- includes/cf/sunos5-5.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) 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 -- 2.47.3