summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2016-03-01 21:47:53 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2016-03-01 21:47:53 +0000
commit2237579a02b77be82339d6362b48fa36a02118e1 (patch)
treea2d18fc000d6e4a414b6ba1a3aa7111b8597fa42
parent1a0c960e776d83db52c30947c56330b135e24592 (diff)
Set IFF_MULTICAST flag on tun(4) interfaces so IPv6 addresses can be assigned.
ok millert@ mpi@
-rw-r--r--sys/net/if_tun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 88e7b649903..a99d28d6b85 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.166 2016/01/31 13:54:13 stefan Exp $ */
+/* $OpenBSD: if_tun.c,v 1.167 2016/03/01 21:47:52 stsp Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -216,7 +216,7 @@ tun_create(struct if_clone *ifc, int unit, int flags)
if ((flags & TUN_LAYER2) == 0) {
tp->tun_flags &= ~TUN_LAYER2;
ifp->if_mtu = ETHERMTU;
- ifp->if_flags = IFF_POINTOPOINT;
+ ifp->if_flags = (IFF_POINTOPOINT|IFF_MULTICAST);
ifp->if_type = IFT_TUNNEL;
ifp->if_hdrlen = sizeof(u_int32_t);
ifp->if_rtrequest = p2p_rtrequest;