dhcpv6: sanitize option request list
[project/odhcp6c.git] / src / odhcp6c.h
index ad4f7937b3fd2c462d4556052f74a3b2de0e628d..38a2ca73e9f77227037356d949fec4a153fb88c7 100644 (file)
@@ -54,6 +54,8 @@ enum dhcvp6_opt {
        DHCPV6_OPT_INTERFACE_ID = 18,
        DHCPV6_OPT_RECONF_MESSAGE = 19,
        DHCPV6_OPT_RECONF_ACCEPT = 20,
+       DHCPV6_OPT_SIP_SERVER_D = 21,
+       DHCPV6_OPT_SIP_SERVER_A = 22,
        DHCPV6_OPT_DNS_SERVERS = 23,
        DHCPV6_OPT_DNS_DOMAIN = 24,
        DHCPV6_OPT_IA_PD = 25,
@@ -62,8 +64,6 @@ enum dhcvp6_opt {
        DHCPV6_OPT_INFO_REFRESH = 32,
        DHCPV6_OPT_FQDN = 39,
        DHCPV6_OPT_NTP_SERVER = 56,
-       DHCPV6_OPT_SIP_SERVER_D = 21,
-       DHCPV6_OPT_SIP_SERVER_A = 22,
        DHCPV6_OPT_AFTR_NAME = 64,
        DHCPV6_OPT_PD_EXCLUDE = 67,
        DHCPV6_OPT_SOL_MAX_RT = 82,
@@ -333,11 +333,15 @@ enum odhcp6c_opt_flags {
        OPT_ARRAY = 0x10,
        OPT_INTERNAL = 0x20,
        OPT_NO_PASSTHRU = 0x40,
+       OPT_ORO = 0x80,
+       OPT_ORO_STATEFUL = 0x100,
+       OPT_ORO_STATELESS = 0x200,
+       OPT_ORO_SOLICIT = 0x400
 };
 
 struct odhcp6c_opt {
        uint16_t code;
-       uint8_t flags;
+       uint16_t flags;
        const char *str;
 };