diff options
author | Seonah Moon <seonah1.moon@samsung.com> | 2017-06-01 14:38:03 +0900 |
---|---|---|
committer | Seonah Moon <seonah1.moon@samsung.com> | 2017-06-01 14:39:11 +0900 |
commit | 3ff23b8470200ce6c0753422e61bf1cccdefdf55 (patch) | |
tree | 06c22f09c742888d20e908d8e9cb297a21ba4ab8 | |
parent | 1a23c1e68d46c2f9b2ccb4b7cdd61fadc44a7530 (diff) | |
download | toybox-3ff23b8470200ce6c0753422e61bf1cccdefdf55.tar.gz toybox-3ff23b8470200ce6c0753422e61bf1cccdefdf55.tar.bz2 toybox-3ff23b8470200ce6c0753422e61bf1cccdefdf55.zip |
[dhcpd] Append DHCP option fields to DHCP ACKsubmit/tizen_4.0/20170828.100007submit/tizen_4.0/20170811.094300submit/tizen/20170607.064606accepted/tizen/unified/20170608.072307accepted/tizen/4.0/unified/20170828.221523accepted/tizen/4.0/unified/20170816.012444
Change-Id: I265952ac7adfd829c1e4ff46639e4b6afc097583
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
-rw-r--r-- | toys/pending/dhcpd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toys/pending/dhcpd.c b/toys/pending/dhcpd.c index 17f5009..d9ca7f0 100644 --- a/toys/pending/dhcpd.c +++ b/toys/pending/dhcpd.c @@ -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; |