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>
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user