diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-12-14 00:36:59 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-12-14 00:36:59 +0100 |
commit | e977853e70d4a8c346a1ad765fc8353ce0e2ced8 (patch) | |
tree | 4c016173463cb53434559f3df3dbc7a872a90e02 /networking/udhcp/d6_dhcpc.c | |
parent | 9898db4c948b9610608a4adda0f1389052c656be (diff) | |
download | busybox-w32-e977853e70d4a8c346a1ad765fc8353ce0e2ced8.tar.gz busybox-w32-e977853e70d4a8c346a1ad765fc8353ce0e2ced8.tar.bz2 busybox-w32-e977853e70d4a8c346a1ad765fc8353ce0e2ced8.zip |
udhcpc6: add some comments
RFCs for DHCPv6 are written rather badly...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r-- | networking/udhcp/d6_dhcpc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c index fd196eb67..9384e4b9c 100644 --- a/networking/udhcp/d6_dhcpc.c +++ b/networking/udhcp/d6_dhcpc.c | |||
@@ -1617,6 +1617,16 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv) | |||
1617 | prefix_timeout = 0; | 1617 | prefix_timeout = 0; |
1618 | option = d6_find_option(packet.d6_options, packet_end, D6_OPT_STATUS_CODE); | 1618 | option = d6_find_option(packet.d6_options, packet_end, D6_OPT_STATUS_CODE); |
1619 | if (option && (option->data[0] | option->data[1]) != 0) { | 1619 | if (option && (option->data[0] | option->data[1]) != 0) { |
1620 | ///FIXME: | ||
1621 | // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
1622 | // | OPTION_STATUS_CODE | option-len | | ||
1623 | // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
1624 | // | status-code | | | ||
1625 | // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ||
1626 | // . status-message . | ||
1627 | // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
1628 | // so why do we think it's NAK if data[0] is zero but data[1] is not? That's wrong... | ||
1629 | // we should also check that option->len is ok (i.e. not 0), right? | ||
1620 | /* return to init state */ | 1630 | /* return to init state */ |
1621 | bb_info_msg("received DHCP NAK (%u)", option->data[4]); | 1631 | bb_info_msg("received DHCP NAK (%u)", option->data[4]); |
1622 | d6_run_script(packet.d6_options, | 1632 | d6_run_script(packet.d6_options, |