patch-2.4.0-test10 linux/net/bridge/br_if.c
Next file: linux/net/bridge/br_ioctl.c
Previous file: linux/net/bridge/br.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Tue Oct 10 10:33:52 2000
- Orig file:
v2.4.0-test9/linux/net/bridge/br_if.c
- Orig date:
Mon May 8 22:21:58 2000
diff -u --recursive --new-file v2.4.0-test9/linux/net/bridge/br_if.c linux/net/bridge/br_if.c
@@ -5,7 +5,7 @@
* Authors:
* Lennert Buytenhek <buytenh@gnu.org>
*
- * $Id: br_if.c,v 1.3 2000/05/05 02:17:17 davem Exp $
+ * $Id: br_if.c,v 1.4 2000/10/05 01:58:16 davem Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -14,6 +14,7 @@
*/
#include <linux/kernel.h>
+#include <linux/if_arp.h>
#include <linux/if_bridge.h>
#include <linux/inetdevice.h>
#include <linux/rtnetlink.h>
@@ -222,7 +223,7 @@
if (dev->br_port != NULL)
return -EBUSY;
- if (dev->flags & IFF_LOOPBACK)
+ if (dev->flags & IFF_LOOPBACK || dev->type != ARPHRD_ETHER)
return -EINVAL;
dev_hold(dev);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)