From: Ted Lemon Date: Tue, 9 Dec 1997 19:04:04 +0000 (+0000) Subject: Use yiaddr to transmit response to client X-Git-Tag: carrel-2~212 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90ddb81d9d77c9241593654f8a34b520bd29fc39;p=thirdparty%2Fdhcp.git Use yiaddr to transmit response to client --- diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c index a152131a0..a6c366bc6 100644 --- a/relay/dhcrelay.c +++ b/relay/dhcrelay.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: dhcrelay.c,v 1.9 1997/12/06 04:03:04 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dhcrelay.c,v 1.10 1997/12/09 19:04:04 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -241,7 +241,7 @@ void relay (ip, packbuf, length, from_port, from, hfrom) if (packet -> op == BOOTREPLY) { #ifndef USE_FALLBACK if (!(packet -> flags & htons (BOOTP_BROADCAST))) { - to.sin_addr = packet -> ciaddr; + to.sin_addr = packet -> yiaddr; to.sin_port = remote_port; } else #endif