Displaying 3 results from an estimated 3 matches for "br_dev_ioctl".
Did you mean:
blkdev_ioctl
2007 Apr 18
0
[Bridge] [PATCH] (9/11) bridge -- new ioctl interface for 32/64 compatiablity
...IF 0x89a3 /* remove interface from bridge */
+
/* Device private ioctl calls */
/*
diff -Nru a/net/bridge/br_ioctl.c b/net/bridge/br_ioctl.c
--- a/net/bridge/br_ioctl.c 2004-05-20 14:46:10 -07:00
+++ b/net/bridge/br_ioctl.c 2004-05-20 14:46:10 -07:00
@@ -78,13 +78,36 @@
return num;
}
-int br_dev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
+static int add_del_if(struct net_bridge *br, int ifindex, int isadd)
+{
+ struct net_device *dev;
+ int ret;
+
+ if (!capable(CAP_NET_ADMIN))
+ return -EPERM;
+
+ dev = dev_get_by_index(ifindex);
+ if (dev == NULL)
+ return -EINVAL;
+
+ if (isa...
2007 Apr 18
0
[Bridge] [PATCH] (4/11) bridge - ioctl cleanup and consolidation
...rn -EFAULT;
-
- return br_ioctl_device(dev->priv, args[0], args[1], args[2], args[3]);
-}
-
static struct net_device_stats *br_dev_get_stats(struct net_device *dev)
{
struct net_bridge *br;
@@ -115,7 +100,7 @@
ether_setup(dev);
- dev->do_ioctl = br_dev_do_ioctl;
+ dev->do_ioctl = br_dev_ioctl;
dev->get_stats = br_dev_get_stats;
dev->hard_start_xmit = br_dev_xmit;
dev->open = br_dev_open;
diff -Nru a/net/bridge/br_if.c b/net/bridge/br_if.c
--- a/net/bridge/br_if.c 2004-05-20 10:51:05 -07:00
+++ b/net/bridge/br_if.c 2004-05-20 10:51:05 -07:00
@@ -309,34 +309,6 @@
return 0...
2007 Apr 18
5
[Bridge] RFC: [PATCH] bridge vlan integration
Hi,
The attached patches enables the bridge to filter and forward packets
according to their IEEE 802.1q headers. The goals behind this change
include :
- Enable running STP on 802.1q tagged networks. STP packets
must be untagged. It isn't obvious how else to enable STP
with the current bridge and vlan code.
- Add native support for an untagged vlan. Currently an untagged
vlan can