aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/d6_common.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-03-27 22:10:15 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-03-27 22:41:59 +0200
commite09f5e3045fc90547be9ec49c63b633d103cfc45 (patch)
tree5044ae5060fec01909714eaab1da3567993cd222 /networking/udhcp/d6_common.h
parent8f3bf4f0d3605b50a8e4c48c89aeabc455f04884 (diff)
downloadbusybox-e09f5e3045fc90547be9ec49c63b633d103cfc45.tar.gz
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.h4
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 {
struct d6_option *ia_na;
char **env_ptr;
unsigned env_idx;
+ /* link-local IPv6 address */
+ struct in6_addr ll_ip6;
};
#define client6_data (*(struct client6_data_t*)(&bb_common_bufsiz1[COMMON_BUFSIZE - sizeof(struct client6_data_t)]))
+int FAST_FUNC d6_read_interface(const char *interface, int *ifindex, struct in6_addr *nip6, uint8_t *mac);
+
int FAST_FUNC d6_listen_socket(int port, const char *inf);
int FAST_FUNC d6_recv_kernel_packet(