]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Use DLPI on sparc, sockets on i386.
authorTed Lemon <source@isc.org>
Sat, 13 Feb 1999 19:36:40 +0000 (19:36 +0000)
committerTed Lemon <source@isc.org>
Sat, 13 Feb 1999 19:36:40 +0000 (19:36 +0000)
includes/cf/sunos5-5.h

index 6917cd5b70be55cfd69176e8d0f5bcea1a092bc3..be1b3a6f077431d07f8024720c83c1122673a8a6 100644 (file)
@@ -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