From: Ted Lemon Date: Sat, 13 Mar 1999 18:58:00 +0000 (+0000) Subject: Fix up references to ciaddr and yiaddr. X-Git-Tag: V3-ALPHA-19990315~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=531fa185b48bf0ad64baf94f1461ee888eff3e69;p=thirdparty%2Fdhcp.git Fix up references to ciaddr and yiaddr. --- diff --git a/server/dhcp.c b/server/dhcp.c index f24b740e2..3693419dd 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -42,7 +42,7 @@ #ifndef lint 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 */ #include "dhcpd.h" @@ -1361,7 +1361,7 @@ void dhcp_reply (lease) /* If the client is RENEWING, unicast to the client using the regular IP stack. */ } 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; if (fallback_interface) { @@ -1382,8 +1382,8 @@ void dhcp_reply (lease) unicast to a client without using the ARP protocol, sent it directly to that client. */ } else if (!(raw.flags & htons (BOOTP_BROADCAST)) && - can_unicast_without_arp ()) { - to.sin_addr = state -> yiaddr; + can_unicast_without_arp (state -> ip)) { + to.sin_addr = raw.yiaddr; to.sin_port = remote_port; /* Otherwise, broadcast it on the local network. */