When the Cisco side is configured with IPv4 and IPv6 DNS resolver IPs,
it will send option X-CSTP-DNS-IP6
This patch captures the IPv6 addresses provided, and puts them in
INTERNAL_IP6_DNS variable for vpnc-scripts (which is already handled
there)
Signed-off-by: Colin Petrie <colin@spakka.net>
[dwmw2: Put them in $INTERNAL_IP4_DNS instead. They shouldn't be split.]
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
vpninfo->ip_info.netmask6 = new_option->value;
} else
vpninfo->ip_info.netmask = new_option->value;
- } else if (!strcmp(buf + 7, "DNS")) {
+ } else if (!strcmp(buf + 7, "DNS") ||
+ !strcmp(buf + 7, "DNS-IP6")) {
int j;
for (j = 0; j < 3; j++) {
if (!vpninfo->ip_info.dns[j]) {