/**
- * Copyright (C) 2012-2013 Steven Barth <steven@midlink.org>
+ * Copyright (C) 2012-2014 Steven Barth <steven@midlink.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License v2 as published by
DHCPV6_OPT_AUTH = 11,
DHCPV6_OPT_STATUS = 13,
DHCPV6_OPT_RAPID_COMMIT = 14,
+ DHCPV6_OPT_USER_CLASS = 15,
+ DHCPV6_OPT_VENDOR_CLASS = 16,
DHCPV6_OPT_RECONF_MESSAGE = 19,
DHCPV6_OPT_RECONF_ACCEPT = 20,
DHCPV6_OPT_DNS_SERVERS = 23,
_DHCPV6_Status_Max
};
+enum dhcpv6_config {
+ DHCPV6_STRICT_OPTIONS = 1,
+ DHCPV6_CLIENT_FQDN = 2,
+ DHCPV6_ACCEPT_RECONFIGURE = 4,
+};
+
typedef int(reply_handler)(enum dhcpv6_msg orig, const int rc,
const void *opt, const void *end);
STATE_RA_PREFIX,
STATE_RA_DNS,
STATE_AFTR_NAME,
+ STATE_VENDORCLASS,
+ STATE_USERCLASS,
_STATE_MAX
};
uint16_t length;
};
-int init_dhcpv6(const char *ifname, bool strict_options, int sol_timeout);
+int init_dhcpv6(const char *ifname, unsigned int client_options, int sol_timeout);
void dhcpv6_set_ia_mode(enum odhcp6c_ia_mode na, enum odhcp6c_ia_mode pd);
int dhcpv6_request(enum dhcpv6_msg type);
int dhcpv6_poll_reconfigure(void);