]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Assign Address-IP6 field to netmask instead of address
authorJeremy Visser <jeremy@visser.name>
Fri, 14 Feb 2014 12:32:47 +0000 (23:32 +1100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 14 Feb 2014 12:35:26 +0000 (12:35 +0000)
The Address-IP6 field combines the address and netmask into one line,
meaning it only makes sense in the netmask field.

Fixes an error rather not dissimilar to the following:

  Error: an inet prefix is expected rather than "<foo>/64/128"

Signed-off-by: Jeremy Visser <jeremy@visser.name>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
cstp.c

diff --git a/cstp.c b/cstp.c
index c27a5725d3320257dad1c7ae08c15892ce6fab3e..fde14e63142f405abc10f07655e02b484e3f87c1 100644 (file)
--- a/cstp.c
+++ b/cstp.c
@@ -379,7 +379,7 @@ static int start_cstp_connection(struct openconnect_info *vpninfo)
                        if (cstpmtu > mtu)
                                mtu = cstpmtu;
                } else if (!strcmp(buf + 7, "Address-IP6")) {
-                       vpninfo->ip_info.addr6 = new_option->value;
+                       vpninfo->ip_info.netmask6 = new_option->value;
                } else if (!strcmp(buf + 7, "Address")) {
                        if (strchr(new_option->value, ':')) {
                                if (!vpninfo->disable_ipv6)