In IPv6 send the prefix instead of the netmask

That allows vpnc-script in windows to apply the correct settings.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-09-08 13:50:39 +02:00
parent aa6cacf041
commit 06c02caa02

View File

@@ -1518,8 +1518,8 @@ static int connect_handler(worker_st * ws)
if (ws->vinfo.ipv6_netmask) {
ret =
tls_printf(ws->session,
"X-CSTP-Netmask: %s\r\n",
ws->vinfo.ipv6_netmask);
"X-CSTP-Netmask: %u\r\n",
ws->vinfo.ipv6_prefix);
SEND_ERR(ret);
}
}