]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add UPF support
authorTed Lemon <source@isc.org>
Wed, 5 Mar 1997 06:16:07 +0000 (06:16 +0000)
committerTed Lemon <source@isc.org>
Wed, 5 Mar 1997 06:16:07 +0000 (06:16 +0000)
includes/cf/ultrix.h
includes/osdep.h

index 36f53af4255a93e270102a395f48e1dfc5aae328..1f1fbbcbb1962ecb085d322b73eb309194e9089e 100644 (file)
@@ -98,6 +98,12 @@ extern int h_errno;
 #define TIME time_t
 #define GET_TIME(x)    time ((x))
 
+/* Ultrix doesn't provide an endian.h, but it only runs on little-endian
+   machines, so we'll just hack around the issue. */
+#define BIG_ENDIAN 1
+#define LITTLE_ENDIAN 2
+#define BYTE_ORDER LITTLE_ENDIAN
+
 #if defined (USE_DEFAULT_NETWORK)
-#  define USE_SOCKETS
+#  define USE_UPF
 #endif
index 02af9dcd4785fafc934e8ab09703f7549e90f017..b2b23ed280ea3e1574b52bb1e0a2b2e87f50848e 100644 (file)
 #  define USE_NIT_RECEIVE
 #endif
 
+#ifdef USE_UPF
+#  define USE_UPF_SEND
+#  define USE_UPF_RECEIVE
+#endif
+
 /* Porting::
 
    If you add support for sending packets directly out an interface,
    Currently, all low-level packet interfaces use BSD sockets as a
    fallback. */
 
-#if defined (USE_BPF_SEND) || defined (USE_NIT_SEND)
+#if defined (USE_BPF_SEND) || defined (USE_NIT_SEND) || defined (USE_UPF_SEND)
 #  define USE_SOCKET_FALLBACK
 #  define USE_FALLBACK
 #endif
    and need to be able to assemble packets, add the USE_XXX_SEND
    definition for your interface to the list tested below. */
 
-#if defined (USE_RAW_SEND) || defined (USE_BPF_SEND) || defined (USE_NIT_SEND)
+#if defined (USE_RAW_SEND) || defined (USE_BPF_SEND) || \
+               defined (USE_NIT_SEND) || defined (USE_UPF_SEND)
 #  define PACKET_ASSEMBLY
 #endif
 
    and need to be able to decode raw packets, add the USE_XXX_RECEIVE
    definition for your interface to the list tested below. */
 
-#if defined (USE_RAW_RECEIVE) || defined (USE_BPF_RECEIVE) \
-       || defined (USE_NIT_RECEIVE)
+#if defined (USE_RAW_RECEIVE) || defined (USE_BPF_SEND) || \
+               defined (USE_NIT_RECEIVE) || defined (USE_UPF_SEND)
 #  define PACKET_DECODING
 #endif