diff options
author | Antoine Girard-Vallée <antoine.girard-vallee@savoirfairelinux.com> | 2019-03-08 09:24:42 -0500 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-04-13 16:27:26 +0200 |
commit | 0e7bd69bb58e0914f25e3543e6beb142a203738c (patch) | |
tree | 2826e4622a962780f46dd0cfb57401c0997b0f23 /networking/udhcp/common.c | |
parent | 2945822f8680c10bd6930c752c10849a725b5ef7 (diff) | |
download | busybox-w32-0e7bd69bb58e0914f25e3543e6beb142a203738c.tar.gz busybox-w32-0e7bd69bb58e0914f25e3543e6beb142a203738c.tar.bz2 busybox-w32-0e7bd69bb58e0914f25e3543e6beb142a203738c.zip |
udhcp: add 100 and 101 dhcp options for ipv4
Support for the IEEE timezone string and timezone database strings (100
and 101 options respectively) is added for ipv4, conforming to RFC-4833.
The two options are passed to hook scripts in the variables tzstr and
tzdbstr.
function old new delta
dhcp_option_strings 280 294 +14
dhcp_optflags 76 80 +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 18/0) Total: 18 bytes
Signed-off-by: Antoine Girard-Vallée <antoine.girard-vallee@savoirfairelinux.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r-- | networking/udhcp/common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index fc4de5716..59cf723ee 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -54,6 +54,8 @@ const struct dhcp_optflag dhcp_optflags[] = { | |||
54 | { OPTION_STRING , 0x43 }, /* DHCP_BOOT_FILE */ | 54 | { OPTION_STRING , 0x43 }, /* DHCP_BOOT_FILE */ |
55 | //TODO: not a string, but a set of LASCII strings: | 55 | //TODO: not a string, but a set of LASCII strings: |
56 | // { OPTION_STRING , 0x4D }, /* DHCP_USER_CLASS */ | 56 | // { OPTION_STRING , 0x4D }, /* DHCP_USER_CLASS */ |
57 | { OPTION_STRING , 0x64 }, /* DHCP_PCODE */ | ||
58 | { OPTION_STRING , 0x65 }, /* DHCP_TCODE */ | ||
57 | #if ENABLE_FEATURE_UDHCP_RFC3397 | 59 | #if ENABLE_FEATURE_UDHCP_RFC3397 |
58 | { OPTION_DNS_STRING | OPTION_LIST , 0x77 }, /* DHCP_DOMAIN_SEARCH */ | 60 | { OPTION_DNS_STRING | OPTION_LIST , 0x77 }, /* DHCP_DOMAIN_SEARCH */ |
59 | { OPTION_SIP_SERVERS , 0x78 }, /* DHCP_SIP_SERVERS */ | 61 | { OPTION_SIP_SERVERS , 0x78 }, /* DHCP_SIP_SERVERS */ |
@@ -121,6 +123,8 @@ const char dhcp_option_strings[] ALIGN1 = | |||
121 | "tftp" "\0" /* DHCP_TFTP_SERVER_NAME*/ | 123 | "tftp" "\0" /* DHCP_TFTP_SERVER_NAME*/ |
122 | "bootfile" "\0" /* DHCP_BOOT_FILE */ | 124 | "bootfile" "\0" /* DHCP_BOOT_FILE */ |
123 | // "userclass" "\0" /* DHCP_USER_CLASS */ | 125 | // "userclass" "\0" /* DHCP_USER_CLASS */ |
126 | "tzstr" "\0" /* DHCP_PCODE */ | ||
127 | "tzdbstr" "\0" /* DHCP_TCODE */ | ||
124 | #if ENABLE_FEATURE_UDHCP_RFC3397 | 128 | #if ENABLE_FEATURE_UDHCP_RFC3397 |
125 | "search" "\0" /* DHCP_DOMAIN_SEARCH */ | 129 | "search" "\0" /* DHCP_DOMAIN_SEARCH */ |
126 | // doesn't work in udhcpd.conf since OPTION_SIP_SERVERS | 130 | // doesn't work in udhcpd.conf since OPTION_SIP_SERVERS |