diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-03-05 02:35:39 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-03-05 02:35:39 +0000 |
commit | e4700c6425ec1c45ed1173c24a2a1346b5d128f4 (patch) | |
tree | 3ef367eaa450703303e1c62e73b3e82e9775bbe9 /sys | |
parent | e2f6815059665bac422e998eb4ee1377799d29bb (diff) |
change the interface type from IFF_POINTOPOINT to the more correct
type of IFF_TUNNEL (Encapsulation interface).
ok djm@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_tun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 56bdc802de4..aacce07d36c 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.75 2006/03/04 22:40:16 brad Exp $ */ +/* $OpenBSD: if_tun.c,v 1.76 2006/03/05 02:35:38 brad Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -202,7 +202,7 @@ tun_create(struct if_clone *ifc, int unit, int flags) tp->tun_flags &= ~TUN_LAYER2; ifp->if_mtu = TUNMTU; ifp->if_flags = IFF_POINTOPOINT; - ifp->if_type = IFF_POINTOPOINT; + ifp->if_type = IFT_TUNNEL; ifp->if_hdrlen = sizeof(u_int32_t); if_attach(ifp); if_alloc_sadl(ifp); |