Skip to content

Commit

Permalink
Fix IPv6 setup on Solaris
Browse files Browse the repository at this point in the history
Commit a5dd38e ("Assign Address-IP6 field to netmask instead of address")
caused us to sometimes neglect to plumb the tun interface for IPv6.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Sep 22, 2016
1 parent 120b592 commit 0d2c33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tun.c
Expand Up @@ -162,7 +162,7 @@ intptr_t os_setup_tun(struct openconnect_info *vpninfo)
return -EIO;
}

if (vpninfo->ip_info.addr6) {
if (vpninfo->ip_info.addr6 || vpninfo->ip_info.netmask6) {
vpninfo->ip6_fd = link_proto(vpninfo, unit_nr, "/dev/udp6", IFF_IPV6);
if (vpninfo->ip6_fd < 0) {
close(tun_fd);
Expand Down

0 comments on commit 0d2c33e

Please sign in to comment.