[dhcpd] Append DHCP option fields to DHCP ACK 96/132096/2 accepted/tizen/4.0/unified/20170816.012444 accepted/tizen/4.0/unified/20170828.221523 accepted/tizen/unified/20170608.072307 submit/tizen/20170607.064606 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100007
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 1 Jun 2017 05:38:03 +0000 (14:38 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 1 Jun 2017 05:39:11 +0000 (14:39 +0900)
Change-Id: I265952ac7adfd829c1e4ff46639e4b6afc097583
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
toys/pending/dhcpd.c

index 17f5009..d9ca7f0 100644 (file)
@@ -2072,10 +2072,12 @@ void dhcpd_main(void)
               send_packet(1);
               break;
             }
+            get_reqparam(&gstate.rqopt);
             optptr = set_optval(optptr, DHCP_OPT_MESSAGE_TYPE, &msgtype, 1);
             optptr = set_optval(optptr, DHCP_OPT_SERVER_ID, &gconfig.server_nip, 4);
             reqested_lease = htonl(reqested_lease);
             optptr = set_optval(optptr, DHCP_OPT_LEASE_TIME, &reqested_lease, 4);
+            optptr = set_reqparam(optptr, gstate.rqopt);
             send_packet(1);
             write_leasefile();
             break;