aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/options.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-07-03 18:14:03 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-07-03 18:14:03 +0200
commit97ef65483a40f8622aaa73408dc0909f01ebd118 (patch)
treee5ea5c626bedf51c271c480eedbea0b827b1f5ed /networking/udhcp/options.h
parent7895b91743702497efc179a4fe30808e49c67977 (diff)
downloadbusybox-97ef65483a40f8622aaa73408dc0909f01ebd118.tar.gz
udhcpc: support option 0x79 (static routes) (part of bug 341)
function old new delta xmalloc_optname_optval - 583 +583 dhcp_option_strings 258 266 +8 dhcp_options 70 72 +2 len_of_option_as_string 11 12 +1 dhcp_option_lengths 11 12 +1 udhcp_run_script 1187 669 -518 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/1 up/down: 595/-518) Total: 77 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/options.h')
-rw-r--r--networking/udhcp/options.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/udhcp/options.h b/networking/udhcp/options.h
index 9e624318f..aeed36907 100644
--- a/networking/udhcp/options.h
+++ b/networking/udhcp/options.h
@@ -20,6 +20,7 @@ enum {
OPTION_S16,
OPTION_U32,
OPTION_S32,
+ OPTION_STATIC_ROUTES,
};
/* Client requests this option by default */
@@ -68,6 +69,7 @@ enum {
#define DHCP_VENDOR 0x3c
#define DHCP_CLIENT_ID 0x3d
#define DHCP_FQDN 0x51
+#define DHCP_STATIC_ROUTES 0x79
#define DHCP_END 0xFF
/* Offsets in option byte sequence */
#define OPT_CODE 0