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
+5
View File
@@ -51,6 +51,7 @@ enum {
HEADER_DTLS_MTU,
HEADER_DTLS_CIPHERSUITE,
HEADER_CONNECTION,
HEADER_FULL_IPV6,
HEADER_USER_AGENT,
};
@@ -146,6 +147,10 @@ typedef struct worker_st {
unsigned last_bad_mtu;
unsigned conn_mtu;
/* Indicates whether the new IPv6 headers will
* be sent or the old */
unsigned full_ipv6;
/* Buffer used by worker */
uint8_t * buffer;
unsigned buffer_size;