#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
# 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