close(ip_fd);
return -EIO;
}
- mux_id = ioctl(ip_fd, I_PLINK, tun2_fd);
+ mux_id = ioctl(ip_fd, I_LINK, tun2_fd);
if (mux_id < 0) {
perror(_("Can't link tun to IP"));
close(tun2_fd);
if (ioctl(ip_fd, SIOCSIFMUXID, &ifr) < 0) {
perror(_("Set mux id"));
close(tun_fd);
- ioctl(ip_fd, I_PUNLINK, mux_id);
close(ip_fd);
return -EIO;
}
- /* Solaris tunctl needs this in order to tear it down */
- vpn_progress(vpninfo, PRG_DEBUG, _("mux id is %d\n"), mux_id);
- vpninfo->tun_muxid = mux_id;
vpninfo->ip_fd = ip_fd;
#else /* BSD et al have /dev/tun$x devices */
}
}
#ifdef __sun__
- if (ioctl(vpninfo->ip_fd, I_PUNLINK, vpninfo->tun_muxid) < 0)
- perror(_("ioctl(I_PUNLINK)"));
-
close(vpninfo->ip_fd);
vpninfo->ip_fd = -1;
#endif
<ul>
<li><b>OpenConnect HEAD</b>
<ul>
+ <li>Use <tt>I_LINK</tt> instead of <tt>I_PLINK</tt> on Solaris to plumb interface.</li>
<li>Refer to <a href="vpnc-script.html">vpnc-script</a> and <a href="mail.html">help</a> web pages in openconnect output.</li>
<li>Fix potential crash when processing libproxy results.</li>
<li>Be more conservative in detecting libproxy without pkg-config.</li>