From 95b8a26eef40487d27f80a402a1ed30f77f2d870 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 20 Dec 2013 13:30:15 -0500 Subject: [PATCH] copy siaddr from offer to request --- functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.c b/functions.c index a6b778d..f238d45 100644 --- a/functions.c +++ b/functions.c @@ -676,7 +676,7 @@ int build_dhpacket(int pkt_type) else dhpointer->dhcp_cip = 0; dhpointer->dhcp_yip = 0; - dhpointer->dhcp_sip = 0; + dhpointer->dhcp_sip = dhcph_g->dhcp_sip; dhpointer->dhcp_gip = inet_addr(giaddr); memcpy(dhpointer->dhcp_chaddr, dhmac, ETHER_ADDR_LEN); /*dhpointer->dhcp_sname