Displaying 5 results from an estimated 5 matches for "br_ioctl_deviceless_stub".
2007 Apr 18
1
[Bridge] Re: Re: a problem about brctl
...t;>
>> brctl delif br0 eth0.3
>>
>> At lastest operation,I delif eth0.3 from br0 several times,and the system will crack down, and the following infomation will display at console:
>># brctl delif br0 eth0.3
>>zhsdebug: main() line 60....
>><4>zhs_debug:br_ioctl_deviceless_stub() line 314
>><4>br_ioctl_deviceless() start,arg0=0x00000000,arg1=0...
>><4>zhs_debug:br_ioctl_deviceless_stub() line 316
>><4>zhs_debug:br_ioctl_deviceless_stub() line 314
>><4>br_ioctl_deviceless() start,arg0=0x7fff7d68,arg1=32...
>><4>...
2007 Apr 18
0
[Bridge] [PATCH] (9/11) bridge -- new ioctl interface for 32/64 compatiablity
...-EINVAL;
-
- if (args[0] == BRCTL_ADD_IF)
- ret = br_add_if(br, dev);
- else
- ret = br_del_if(br, dev);
-
- dev_put(dev);
- return ret;
- }
+ return add_del_if(br, args[1], args[0] == BRCTL_ADD_IF);
case BRCTL_GET_BRIDGE_INFO:
{
@@ -303,8 +308,7 @@
return -EOPNOTSUPP;
}
-
-int br_ioctl_deviceless_stub(unsigned long uarg)
+static int old_deviceless(unsigned long uarg)
{
unsigned long args[3];
@@ -354,5 +358,51 @@
}
}
+ return -EOPNOTSUPP;
+}
+
+int br_ioctl_deviceless_stub(unsigned int cmd, unsigned long uarg)
+{
+ switch (cmd) {
+ case SIOCGIFBR:
+ case SIOCSIFBR:
+ return old_device...
2007 Apr 18
0
[Bridge] [PATCH] (4/11) bridge - ioctl cleanup and consolidation
...L_GET_FDB_ENTRIES:
- return br_fdb_get_entries(br, (void *)arg0, arg1, arg2);
+ return br_fdb_get_entries(br, (void *)args[1], args[2], args[3]);
}
return -EOPNOTSUPP;
}
-static int br_ioctl_deviceless(unsigned int cmd,
- unsigned long arg0,
- unsigned long arg1)
+
+int br_ioctl_deviceless_stub(unsigned long uarg)
{
- switch (cmd)
- {
+ unsigned long args[3];
+
+ if (copy_from_user(args, (void *)uarg, sizeof(args)))
+ return -EFAULT;
+
+ switch (args[0]) {
case BRCTL_GET_VERSION:
return BRCTL_VERSION;
@@ -261,15 +293,15 @@
int *indices;
int ret = 0;
- indices = kmalloc(a...
2007 Apr 18
1
[Bridge] [PATCH 2.4] bridge - eliminate br_ioctl_mutex
...include <linux/kernel.h>
#include <linux/if_bridge.h>
#include <linux/inetdevice.h>
+#include <linux/rtnetlink.h>
#include <asm/uaccess.h>
#include "br_private.h"
@@ -230,11 +231,8 @@
return -EOPNOTSUPP;
}
-static DECLARE_MUTEX(ioctl_mutex);
-
int br_ioctl_deviceless_stub(unsigned long arg)
{
- int err;
unsigned long i[3];
if (!capable(CAP_NET_ADMIN))
@@ -243,11 +241,8 @@
if (copy_from_user(i, (void *)arg, 3*sizeof(unsigned long)))
return -EFAULT;
- down(&ioctl_mutex);
- err = br_ioctl_deviceless(i[0], i[1], i[2]);
- up(&ioctl_mutex);
-
- retur...
2007 Apr 18
3
[Bridge] [2.6 patch] fix bridge <-> ATM compile error
...+0100
@@ -22,7 +22,7 @@
#include "br_private.h"
-#if defined(CONFIG_ATM_LANE) || defined(CONFIG_ATM_LANE_MODULE)
+#if defined(CONFIG_ATM_LANE) || (defined(CONFIG_ATM_LANE_MODULE) && defined(MODULE))
#include "../atm/lec.h"
#endif
@@ -39,7 +39,7 @@
brioctl_set(br_ioctl_deviceless_stub);
br_handle_frame_hook = br_handle_frame;
-#if defined(CONFIG_ATM_LANE) || defined(CONFIG_ATM_LANE_MODULE)
+#if defined(CONFIG_ATM_LANE) || (defined(CONFIG_ATM_LANE_MODULE) && defined(MODULE))
br_fdb_get_hook = br_fdb_get;
br_fdb_put_hook = br_fdb_put;
#endif
@@ -60,7 +60,7 @@...