]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Use standard IP stack to send responses to clients with known IP addresses
authorTed Lemon <source@isc.org>
Wed, 12 Jun 1996 23:49:58 +0000 (23:49 +0000)
committerTed Lemon <source@isc.org>
Wed, 12 Jun 1996 23:49:58 +0000 (23:49 +0000)
dhcp.c
server/dhcp.c

diff --git a/dhcp.c b/dhcp.c
index eaa14f61119700d9cc939352506922de260af2cd..3b8cc52d9c1a7de2c8740f27814ea5b94e876f46 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -786,6 +786,15 @@ void ack_lease (packet, lease, offer, when)
                to.sin_addr = packet -> raw -> ciaddr;
                to.sin_port = htons (ntohs (server_port) + 1); /* XXX */
 
+#ifdef USE_FALLBACK
+               result = send_fallback (&fallback_interface,
+                                       packet, &raw, outgoing.packet_length,
+                                       raw.siaddr, &to, &hto);
+               if (result < 0)
+                       warn ("send_fallback: %m");
+               return;
+#endif
+
        /* Otherwise, broadcast it on the local network. */
        } else {
                to.sin_addr.s_addr = htonl (INADDR_BROADCAST);
index eaa14f61119700d9cc939352506922de260af2cd..3b8cc52d9c1a7de2c8740f27814ea5b94e876f46 100644 (file)
@@ -786,6 +786,15 @@ void ack_lease (packet, lease, offer, when)
                to.sin_addr = packet -> raw -> ciaddr;
                to.sin_port = htons (ntohs (server_port) + 1); /* XXX */
 
+#ifdef USE_FALLBACK
+               result = send_fallback (&fallback_interface,
+                                       packet, &raw, outgoing.packet_length,
+                                       raw.siaddr, &to, &hto);
+               if (result < 0)
+                       warn ("send_fallback: %m");
+               return;
+#endif
+
        /* Otherwise, broadcast it on the local network. */
        } else {
                to.sin_addr.s_addr = htonl (INADDR_BROADCAST);