diff options
author | Steven Barth <steven@midlink.org> | 2014-03-24 10:01:54 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-03-24 10:01:54 +0100 |
commit | 2b4200f2510874a3ee9c09f594d5ab6340ffb336 (patch) | |
tree | cffe9396e4ae608b989f4d3f70bf25989f040971 /src/dhcpv6.h | |
parent | c7a8e2380a5299d48a851717e139c0876e85483e (diff) |
Managed PD: initial support
Diffstat (limited to 'src/dhcpv6.h')
-rw-r--r-- | src/dhcpv6.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dhcpv6.h b/src/dhcpv6.h index 9b38283..936a350 100644 --- a/src/dhcpv6.h +++ b/src/dhcpv6.h @@ -13,6 +13,8 @@ */ #pragma once +#include <libubox/ustream.h> + #define ALL_DHCPV6_RELAYS {{{0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\ 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02}}} @@ -54,6 +56,7 @@ #define DHCPV6_OPT_IA_PREFIX 26 #define DHCPV6_OPT_INFO_REFRESH 32 #define DHCPV6_OPT_FQDN 39 +#define DHCPV6_OPT_SOL_MAX_RT 82 #ifdef EXT_PREFIX_CLASS /* draft-bhandari-dhc-class-based-prefix, not yet standardized */ @@ -152,6 +155,11 @@ struct dhcpv6_assignment { uint8_t mac[6]; uint8_t length; // length == 128 -> IA_NA, length <= 64 -> IA_PD bool accept_reconf; + + struct odhcpd_ipaddr *managed; + ssize_t managed_size; + struct ustream_fd managed_sock; + uint8_t clid_len; uint8_t clid_data[]; }; |