]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix Linux compiles.
authorTed Lemon <source@isc.org>
Sun, 24 Oct 1999 23:25:33 +0000 (23:25 +0000)
committerTed Lemon <source@isc.org>
Sun, 24 Oct 1999 23:25:33 +0000 (23:25 +0000)
includes/dhcpd.h
includes/osdep.h

index d9584805a4fb8223c4825d337b77f78948b97732..3b40e60a9e76b27a818641f1e496e1a32377a07e 100644 (file)
@@ -1204,7 +1204,7 @@ void indent_spaces (FILE *, int);
 int if_register_socket PROTO ((struct interface_info *));
 #endif
 
-#ifdef USE_SOCKET_FALLBACK
+#if defined (USE_SOCKET_FALLBACK) && !defined (USE_SOCKET_SEND)
 void if_reinitialize_fallback PROTO ((struct interface_info *));
 void if_register_fallback PROTO ((struct interface_info *));
 ssize_t send_fallback PROTO ((struct interface_info *,
@@ -1229,11 +1229,11 @@ ssize_t receive_packet PROTO ((struct interface_info *,
                               struct sockaddr_in *, struct hardware *));
 #endif
 
-#if defined (USE_SOCKET_SEND) || defined (USE_SOCKET_FALLBACK)
+#if defined (USE_SOCKET_FALLBACK)
 isc_result_t fallback_discard PROTO ((omapi_object_t *));
 #endif
 
-#if defined (USE_SOCKET_SEND) && !defined (USE_SOCKET_FALLBACK)
+#if defined (USE_SOCKET_SEND)
 int can_unicast_without_arp PROTO ((struct interface_info *));
 int can_receive_unicast_unconfigured PROTO ((struct interface_info *));
 void maybe_setup_fallback PROTO ((void));
index 53100f2f3eeffe56e37a39b988fdeadae4d0501f..89a29d67fe960c2a31f3ceb4d3fb6a020716e366 100644 (file)
    fallback. */
 
 #if defined (USE_BPF_SEND) || defined (USE_NIT_SEND) || \
-    defined (USE_DLPI_SEND) || defined (USE_UPF_SEND) || defined (USE_LPF_SEND)
+    defined (USE_DLPI_SEND) || defined (USE_UPF_SEND) || \
+    defined (USE_LPF_SEND) || \
+    (defined (USE_SOCKET_SEND) && defined (SO_BINDTODEVICE))
 #  define USE_SOCKET_FALLBACK
 #  define USE_FALLBACK
 #endif
 
 #if defined (USE_RAW_RECEIVE) || defined (USE_BPF_SEND) || \
                defined (USE_NIT_RECEIVE) || defined (USE_UPF_RECEIVE) || \
-               defined (USE_DLPI_RECEIVE)  || defined (USE_LPF_RECEIVE)
+               defined (USE_DLPI_RECEIVE) || defined (USE_LPF_RECEIVE)
 #  define PACKET_DECODING
 #endif