2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

Use standard IP stack to send responses to clients with known IP addresses

This commit is contained in:
Ted Lemon
1996-06-12 23:49:58 +00:00
parent de8d6db15d
commit e2cb6d536a
2 changed files with 18 additions and 0 deletions

View 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);