mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-01 14:55:30 +00:00
Fix up references to ciaddr and yiaddr.
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: dhcp.c,v 1.80 1999/03/13 18:26:05 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: dhcp.c,v 1.81 1999/03/13 18:58:00 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -1361,7 +1361,7 @@ void dhcp_reply (lease)
|
|||||||
/* If the client is RENEWING, unicast to the client using the
|
/* If the client is RENEWING, unicast to the client using the
|
||||||
regular IP stack. */
|
regular IP stack. */
|
||||||
} else if (raw.ciaddr.s_addr && state -> offer == DHCPACK) {
|
} else if (raw.ciaddr.s_addr && state -> offer == DHCPACK) {
|
||||||
to.sin_addr = packet -> raw -> ciaddr;
|
to.sin_addr = raw.ciaddr;
|
||||||
to.sin_port = remote_port;
|
to.sin_port = remote_port;
|
||||||
|
|
||||||
if (fallback_interface) {
|
if (fallback_interface) {
|
||||||
@@ -1382,8 +1382,8 @@ void dhcp_reply (lease)
|
|||||||
unicast to a client without using the ARP protocol, sent it
|
unicast to a client without using the ARP protocol, sent it
|
||||||
directly to that client. */
|
directly to that client. */
|
||||||
} else if (!(raw.flags & htons (BOOTP_BROADCAST)) &&
|
} else if (!(raw.flags & htons (BOOTP_BROADCAST)) &&
|
||||||
can_unicast_without_arp ()) {
|
can_unicast_without_arp (state -> ip)) {
|
||||||
to.sin_addr = state -> yiaddr;
|
to.sin_addr = raw.yiaddr;
|
||||||
to.sin_port = remote_port;
|
to.sin_port = remote_port;
|
||||||
|
|
||||||
/* Otherwise, broadcast it on the local network. */
|
/* Otherwise, broadcast it on the local network. */
|
||||||
|
Reference in New Issue
Block a user