Skip to content

Commit

Permalink
Assign Address-IP6 field to netmask instead of address
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jeremyvisser authored and David Woodhouse committed Feb 14, 2014
1 parent c7077b9 commit a5dd38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cstp.c
Expand Up @@ -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)
Expand Down

0 comments on commit a5dd38e

Please sign in to comment.