]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Use yiaddr to transmit response to client
authorTed Lemon <source@isc.org>
Tue, 9 Dec 1997 19:04:04 +0000 (19:04 +0000)
committerTed Lemon <source@isc.org>
Tue, 9 Dec 1997 19:04:04 +0000 (19:04 +0000)
relay/dhcrelay.c

index a152131a0facc7f8affc3faa19279096e520e88c..a6c366bc6d2501d8bf81715ac8f92a5b97e90e8b 100644 (file)
@@ -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