X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fodhcp6c.h;h=1b46af01df98325b62913b06131bdcaff8cb4e6a;hb=4ad21618ad863b5f590ed00f2c7677605a98e39f;hp=eae9b7a8b9ccbedeb3fe3ea9f24b3ebd206f4d47;hpb=9e52c4de4476a99129b4ab2402898dd9af92e86c;p=odhcp6c.git diff --git a/src/odhcp6c.h b/src/odhcp6c.h index eae9b7a..1b46af0 100644 --- a/src/odhcp6c.h +++ b/src/odhcp6c.h @@ -51,6 +51,9 @@ enum dhcvp6_opt { DHCPV6_OPT_NTP_SERVER = 56, DHCPV6_OPT_SIP_SERVER_D = 21, DHCPV6_OPT_SIP_SERVER_A = 22, + + /* draft-bhandari-dhc-class-based-prefix */ + DHCPV6_OPT_PREFIX_CLASS = 200, /* NOT STANDARDIZED! */ }; enum dhcpv6_opt_npt { @@ -131,7 +134,6 @@ struct dhcpv6_duid { uint8_t data[128]; } _packed; - #define dhcpv6_for_each_option(start, end, otype, olen, odata)\ for (uint8_t *_o = (uint8_t*)(start); _o + 4 <= (uint8_t*)(end) &&\ ((otype) = _o[0] << 8 | _o[1]) && ((odata) = (void*)&_o[4]) &&\ @@ -197,6 +199,7 @@ struct odhcp6c_entry { struct in6_addr target; uint32_t valid; uint32_t preferred; + uint32_t prefix_class; };