[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1401905168-21559-1-git-send-email-vyasevic@redhat.com>
Date: Wed, 4 Jun 2014 14:06:08 -0400
From: Vlad Yasevich <vyasevic@...hat.com>
To: netdev@...r.kernel.org
Cc: Vlad Yasevich <vyasevic@...hat.com>
Subject: [PATCH net] tap: Mark devices of type "tun" as IFF_DONT_BRIDGE
Tun devices are layer 3 devices and do not work correctly
when bridged. Mark then as IFF_DONT_BRIDGE so that people
trying to bridge will get an error.
Signed-off-by: Vlad Yasevich <vyasevic@...hat.com>
---
drivers/net/tun.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index ee328ba..0161aa3 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -931,6 +931,7 @@ static void tun_net_init(struct net_device *dev)
/* Zero header length */
dev->type = ARPHRD_NONE;
dev->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST;
+ dev->priv_flags |= IFF_DONT_BRIDGE;
dev->tx_queue_len = TUN_READQ_SIZE; /* We prefer our own queue length */
break;
--
1.9.0
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists