]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add support for fallback interface
authorTed Lemon <source@isc.org>
Wed, 22 May 1996 07:27:28 +0000 (07:27 +0000)
committerTed Lemon <source@isc.org>
Wed, 22 May 1996 07:27:28 +0000 (07:27 +0000)
includes/osdep.h
osdep.h

index 437ed945d7cda036decb1057644f8a8a7053934e..7c32a590c87d82decd694b0136128cf14491d709 100644 (file)
 #  define USE_NIT_RECEIVE
 #endif
 
+/* Porting::
+
+   If you add support for sending packets directly out an interface,
+   and your support does not do ARP or routing, you must use a fallback
+   mechanism to deal with packets that need to be sent to routers.
+   Currently, all low-level packet interfaces use BSD sockets as a
+   fallback. */
+
+#if defined (USE_BPF_SEND) || defined (USE_NIT_SEND)
+#  define USE_SOCKET_FALLBACK
+#  define USE_FALLBACK
+#endif
+
 /* Porting::
 
    If you add support for sending packets directly out an interface
diff --git a/osdep.h b/osdep.h
index 437ed945d7cda036decb1057644f8a8a7053934e..7c32a590c87d82decd694b0136128cf14491d709 100644 (file)
--- a/osdep.h
+++ b/osdep.h
 #  define USE_NIT_RECEIVE
 #endif
 
+/* Porting::
+
+   If you add support for sending packets directly out an interface,
+   and your support does not do ARP or routing, you must use a fallback
+   mechanism to deal with packets that need to be sent to routers.
+   Currently, all low-level packet interfaces use BSD sockets as a
+   fallback. */
+
+#if defined (USE_BPF_SEND) || defined (USE_NIT_SEND)
+#  define USE_SOCKET_FALLBACK
+#  define USE_FALLBACK
+#endif
+
 /* Porting::
 
    If you add support for sending packets directly out an interface