summaryrefslogtreecommitdiff
path: root/networking/udhcp/common.h
diff options
context:
space:
mode:
authorAntoine Girard-Vallée2019-03-08 09:24:42 -0500
committerDenys Vlasenko2019-04-13 16:27:26 +0200
commit0e7bd69bb58e0914f25e3543e6beb142a203738c (patch)
tree2826e4622a962780f46dd0cfb57401c0997b0f23 /networking/udhcp/common.h
parent2945822f8680c10bd6930c752c10849a725b5ef7 (diff)
downloadbusybox-0e7bd69bb58e0914f25e3543e6beb142a203738c.zip
busybox-0e7bd69bb58e0914f25e3543e6beb142a203738c.tar.gz
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.h')
-rw-r--r--networking/udhcp/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index b68f939..9d1f71a 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -149,6 +149,8 @@ enum {
//#define DHCP_BOOT_FILE 0x43 /* 67: same as 'file' field */
//#define DHCP_USER_CLASS 0x4d /* 77: RFC 3004. set of LASCII strings. "I am a printer" etc */
#define DHCP_FQDN 0x51 /* 81: client asks to update DNS to map its FQDN to its new IP */
+//#define DHCP_PCODE 0x64 /* 100: RFC 4833. IEEE 1003.1 TZ string */
+//#define DHCP_TCODE 0x65 /* 101: RFC 4833. Reference to the TZ database string */
//#define DHCP_DOMAIN_SEARCH 0x77 /* 119: RFC 3397. set of ASCIZ string, DNS-style compressed */
//#define DHCP_SIP_SERVERS 0x78 /* 120: RFC 3361. flag byte, then: 0: domain names, 1: IP addrs */
//#define DHCP_STATIC_ROUTES 0x79 /* 121: RFC 3442. (mask,ip,router) tuples */