diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-03-27 22:10:15 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-03-27 22:41:59 +0200 |
commit | e09f5e3045fc90547be9ec49c63b633d103cfc45 (patch) | |
tree | 5044ae5060fec01909714eaab1da3567993cd222 /networking/udhcp/d6_common.h | |
parent | 8f3bf4f0d3605b50a8e4c48c89aeabc455f04884 (diff) | |
download | busybox-w32-e09f5e3045fc90547be9ec49c63b633d103cfc45.tar.gz busybox-w32-e09f5e3045fc90547be9ec49c63b633d103cfc45.tar.bz2 busybox-w32-e09f5e3045fc90547be9ec49c63b633d103cfc45.zip |
udhcp6: read_interface should save link-local ipv6 address
Patch is based on work by tiggerswelt.net. They say:
"Using this patch it was no problem to acquire an IPv6-Address via DHCPv6
using ISC DHCPD6 on server-side."
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/d6_common.h')
-rw-r--r-- | networking/udhcp/d6_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/udhcp/d6_common.h b/networking/udhcp/d6_common.h index eb211ea0f..f7cfa4ab8 100644 --- a/networking/udhcp/d6_common.h +++ b/networking/udhcp/d6_common.h | |||
@@ -91,10 +91,14 @@ struct client6_data_t { | |||
91 | struct d6_option *ia_na; | 91 | struct d6_option *ia_na; |
92 | char **env_ptr; | 92 | char **env_ptr; |
93 | unsigned env_idx; | 93 | unsigned env_idx; |
94 | /* link-local IPv6 address */ | ||
95 | struct in6_addr ll_ip6; | ||
94 | }; | 96 | }; |
95 | 97 | ||
96 | #define client6_data (*(struct client6_data_t*)(&bb_common_bufsiz1[COMMON_BUFSIZE - sizeof(struct client6_data_t)])) | 98 | #define client6_data (*(struct client6_data_t*)(&bb_common_bufsiz1[COMMON_BUFSIZE - sizeof(struct client6_data_t)])) |
97 | 99 | ||
100 | int FAST_FUNC d6_read_interface(const char *interface, int *ifindex, struct in6_addr *nip6, uint8_t *mac); | ||
101 | |||
98 | int FAST_FUNC d6_listen_socket(int port, const char *inf); | 102 | int FAST_FUNC d6_listen_socket(int port, const char *inf); |
99 | 103 | ||
100 | int FAST_FUNC d6_recv_kernel_packet( | 104 | int FAST_FUNC d6_recv_kernel_packet( |