Added support for the "new" type of IP6 support in AnyConnect.

If the client sends "X-CSTP-Full-IPv6-Capability: true", then we
use the headers:
     X-CSTP-Address-IP6: 2001:db8:1000:1000::1/64
     X-CSTP-Split-Include-IP6: 2001:db8:1000:1001::/64
     X-CSTP-Split-Include-IP6: 2001:db8:1000:1002::/64

(see corresponding openconnect change)
This commit is contained in:
Nikos Mavrogiannopoulos
2014-02-15 13:51:03 +01:00
parent 4e8d7e7a58
commit 3b9971b7e8
10 changed files with 86 additions and 28 deletions
+3 -3
View File
@@ -112,7 +112,6 @@ static struct cfg_options available_options[] = {
{ .name = "ipv6-nbns", .type = OPTION_MULTI_LINE, .mandatory = 0 }, /* alias nbns */
{ .name = "ipv6-network", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "ipv6-netmask", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "ipv6-prefix", .type = OPTION_NUMERIC, .mandatory = 0 },
{ .name = "route-add-cmd", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "route-del-cmd", .type = OPTION_STRING, .mandatory = 0 },
@@ -416,11 +415,12 @@ unsigned force_cert_auth;
READ_STRING("ipv4-netmask", config->network.ipv4_netmask);
READ_STRING("ipv6-network", config->network.ipv6);
READ_STRING("ipv6-netmask", config->network.ipv6_netmask);
READ_NUMERIC("ipv6-prefix", prefix);
if (prefix > 0)
if (prefix > 0) {
config->network.ipv6_netmask = ipv6_prefix_to_mask(prefix);
config->network.ipv6_prefix = prefix;
}
READ_MULTI_LINE("custom-header", config->custom_header, config->custom_header_size);
READ_MULTI_LINE("split-dns", config->split_dns, config->split_dns_size);