/* -*-c-*-
- *
- * $Id$
*
* Tunnel interface based on Linux Usernet
*
if (ioctl(t->f.fd, UNIOCGINFO, &uni)) {
a_warn("TUN", "-", "unet", "getinfo-error", "?ERRNO", A_END);
- return ("<error>");
+ return (0);
}
*ifn = xstrdup(uni.uni_ifname);
T( trace(T_TUNNEL, "tun-unet: attached interface %s to peer `%s'",
*/
static void t_destroy(tunnel *t)
-{
- sel_rmfile(&t->f);
- close(t->f.fd);
- DESTROY(t);
-}
+ { sel_rmfile(&t->f); close(t->f.fd); DESTROY(t); }
const tunnel_ops tun_unet = {
"unet",