summaryrefslogtreecommitdiff
path: root/src/odhcp6c.h
diff options
context:
space:
mode:
authorKaspar Schleiser <kaspar@schleiser.de>2014-01-23 17:05:18 +0100
committerSteven Barth <steven@midlink.org>2014-01-27 14:16:44 +0100
commitdc30922e418be6271ad177f3f9d4ecf0c1eb3f01 (patch)
tree04bba4684bf2e760f32a6c956f2a4857d4dd0f5b /src/odhcp6c.h
parentb146f9adc80cc2c2cdf2b04bfeec4c861a2a0e23 (diff)
downloadodhcp6c-dc30922e418be6271ad177f3f9d4ecf0c1eb3f01.tar.gz
allow disabling "client fqdn" and "accept reconfiguration" options
Some DHCPv6 servers require these to be absent, so add command line switches that allow disabling them. (includes "Combination of command line switches -f and -a broke "-N none" and IA_PD." from Christian Carstensen) Contributed by T-Labs, Deutsche Telekom Innovation Laboratories
Diffstat (limited to 'src/odhcp6c.h')
-rw-r--r--src/odhcp6c.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/odhcp6c.h b/src/odhcp6c.h
index a8f4206..024ebea 100644
--- a/src/odhcp6c.h
+++ b/src/odhcp6c.h
@@ -97,6 +97,12 @@ enum dhcpv6_status {
_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);
@@ -245,7 +251,7 @@ struct odhcp6c_request_prefix {
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);