aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/common.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-05-14 11:06:35 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-05-14 11:11:08 +0200
commit6027597fd1a1a9293818db4729625fff375bf907 (patch)
treea8a38d8459b6a87f0c2132a5c05c779d8c1f4eca /networking/udhcp/common.h
parent30f4d52ed17112f4fa340afe3bcaf305eeed36d9 (diff)
downloadbusybox-w32-6027597fd1a1a9293818db4729625fff375bf907.tar.gz
busybox-w32-6027597fd1a1a9293818db4729625fff375bf907.tar.bz2
busybox-w32-6027597fd1a1a9293818db4729625fff375bf907.zip
udhcpc6: set -x options in request
Last foru commits: function old new delta option_to_env 621 791 +170 .rodata 168351 168505 +154 attach_option 431 506 +75 add_d6_client_options 112 167 +55 d6_option_strings 30 84 +54 udhcp_str2optset 644 660 +16 d6_optflags 12 20 +8 udhcpc6_main 2590 2596 +6 udhcpc_main 2648 2651 +3 read_optset 15 18 +3 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 10/0 up/down: 544/0) Total: 544 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/common.h')
-rw-r--r--networking/udhcp/common.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index 13059f106..5f890459c 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -164,6 +164,10 @@ enum {
164#define OPT_CODE 0 164#define OPT_CODE 0
165#define OPT_LEN 1 165#define OPT_LEN 1
166#define OPT_DATA 2 166#define OPT_DATA 2
167/* Offsets in option byte sequence for DHCPv6 */
168#define D6_OPT_CODE 0
169#define D6_OPT_LEN 2
170#define D6_OPT_DATA 4
167/* Bits in "overload" option */ 171/* Bits in "overload" option */
168#define OPTION_FIELD 0 172#define OPTION_FIELD 0
169#define FILE_FIELD 1 173#define FILE_FIELD 1
@@ -290,10 +294,15 @@ void udhcp_dump_packet(struct dhcp_packet *packet) FAST_FUNC;
290/* 2nd param is "uint32_t*" */ 294/* 2nd param is "uint32_t*" */
291int FAST_FUNC udhcp_str2nip(const char *str, void *arg); 295int FAST_FUNC udhcp_str2nip(const char *str, void *arg);
292/* 2nd param is "struct option_set**" */ 296/* 2nd param is "struct option_set**" */
297#if !ENABLE_UDHCPC6
298#define udhcp_str2optset(str, arg, optflags, option_strings, dhcpv6) \
299 udhcp_str2optset(str, arg, optflags, option_strings)
300#endif
293int FAST_FUNC udhcp_str2optset(const char *str, 301int FAST_FUNC udhcp_str2optset(const char *str,
294 void *arg, 302 void *arg,
295 const struct dhcp_optflag *optflags, 303 const struct dhcp_optflag *optflags,
296 const char *option_strings); 304 const char *option_strings,
305 bool dhcpv6);
297 306
298#if ENABLE_UDHCPC || ENABLE_UDHCPD 307#if ENABLE_UDHCPC || ENABLE_UDHCPD
299void udhcp_init_header(struct dhcp_packet *packet, char type) FAST_FUNC; 308void udhcp_init_header(struct dhcp_packet *packet, char type) FAST_FUNC;