]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Set IPv6 netmask vs. address fields correctly for Pulse
authorDavid Woodhouse <dwmw2@infradead.org>
Mon, 10 Jun 2019 21:09:11 +0000 (22:09 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 10 Jun 2019 21:09:11 +0000 (22:09 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
pulse.c

diff --git a/pulse.c b/pulse.c
index af60257abcfe873b89a816d3ad478c3796d5ad0e..a8065ac0f08ed83301d1c4aa00036dfaba7914ee 100644 (file)
--- a/pulse.c
+++ b/pulse.c
@@ -298,10 +298,13 @@ static int process_attr(struct openconnect_info *vpninfo, uint16_t type,
                                     _("Failed to handle IPv6 address\n"));
                        return -EINVAL;
                }
+               vpninfo->ip_info.addr6 = add_option(vpninfo, "ip6addr", buf, -1);
+
                i = strlen(buf);
                snprintf(buf + i, sizeof(buf) - i, "/%d", data[16]);
+               vpninfo->ip_info.netmask6 = add_option(vpninfo, "ip6netmask", buf, -1);
+
                vpn_progress(vpninfo, PRG_DEBUG, _("Received internal IPv6 address %s\n"), buf);
-               vpninfo->ip_info.addr6 = add_option(vpninfo, "ip6addr", buf, -1);
                break;
 
        case 0x4005: