summaryrefslogtreecommitdiff
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2010-01-13 07:23:39 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2010-01-13 07:23:39 +0000
commitabec333c83cd5e8152ec6c1b135e73e0588f0aba (patch)
tree164bde56f27aef4ef618426a82576c22c447313b /sys/net/if_tun.c
parentd0230fd127b632516030a4841cd489d96f761aba (diff)
cleanup pipex code. ok henning@
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index fc8f2537213..9f9f658a09a 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.104 2010/01/12 11:28:09 deraadt Exp $ */
+/* $OpenBSD: if_tun.c,v 1.105 2010/01/13 07:23:38 yasuoka Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -101,8 +101,7 @@ struct tun_softc {
u_short tun_flags; /* misc flags */
#define tun_if arpcom.ac_if
#ifdef PIPEX
- /* pipex context */
- struct pipex_iface_context pipex_iface;
+ struct pipex_iface_context pipex_iface; /* pipex context */
#endif
};
@@ -588,8 +587,8 @@ tun_output(struct ifnet *ifp, struct mbuf *m0, struct sockaddr *dst,
int s, len, error;
u_int32_t *af;
#ifdef PIPEX
- struct pipex_session *session;
-#endif /* PIPEX */
+ struct pipex_session *session;
+#endif
if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) {
m_freem(m0);
@@ -627,7 +626,7 @@ tun_output(struct ifnet *ifp, struct mbuf *m0, struct sockaddr *dst,
splx(s);
return (0);
}
-#endif /* PIPEX */
+#endif
len = m0->m_pkthdr.len;
IFQ_ENQUEUE(&ifp->if_snd, m0, NULL, error);
@@ -765,7 +764,7 @@ tunioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
int ret;
ret = pipex_ioctl(&tp->pipex_iface, cmd, data);
splx(s);
- return ret;
+ return (ret);
}
#else
splx(s);