search for: br_ioctl_hook

Displaying 4 results from an estimated 4 matches for "br_ioctl_hook".

2007 Apr 18
0
[Bridge] [PATCH] (9/11) bridge -- new ioctl interface for 32/64 compatiablity
...DELIF: if (!capable(CAP_NET_ADMIN)) return -EPERM; dev_load(ifr.ifr_name); diff -Nru a/net/socket.c b/net/socket.c --- a/net/socket.c 2004-05-20 14:46:10 -07:00 +++ b/net/socket.c 2004-05-20 14:46:10 -07:00 @@ -727,9 +727,9 @@ */ static DECLARE_MUTEX(br_ioctl_mutex); -static int (*br_ioctl_hook)(unsigned long arg) = NULL; +static int (*br_ioctl_hook)(unsigned int cmd, unsigned long arg) = NULL; -void brioctl_set(int (*hook)(unsigned long)) +void brioctl_set(int (*hook)(unsigned int, unsigned long)) { down(&br_ioctl_mutex); br_ioctl_hook = hook; @@ -794,13 +794,15 @@ break;...
2007 Apr 18
1
[Bridge] brctl insmod
I noticed that when I type brctl - it does insmod when the bridge module is not loaded. Where can I find the code (in the brctl or libbridge code) which does that? Thanks, Abhijit
2007 Apr 18
1
[Bridge] [PATCH 2.4] bridge - eliminate br_ioctl_mutex
...,6 +22,7 @@ #include <linux/init.h> #include <linux/if_bridge.h> #include <linux/brlock.h> +#include <linux/rtnetlink.h> #include <asm/uaccess.h> #include "br_private.h" @@ -54,15 +55,13 @@ return 0; } -static void __br_clear_ioctl_hook(void) -{ - br_ioctl_hook = NULL; -} - static void __exit br_deinit(void) { unregister_netdevice_notifier(&br_device_notifier); - br_call_ioctl_atomic(__br_clear_ioctl_hook); + + rtnl_lock(); + br_ioctl_hook = NULL; + rtnl_unlock(); br_write_lock_bh(BR_NETPROTO_LOCK); br_handle_frame_hook = NULL; diff -Nru a/n...
2007 Apr 18
1
[Bridge] Problem loading bridge.o
...nking I'm going to bridge the wlan0 interface and the eth1 interface, and run the firewall with br0 as the internal interface. I compiled the kernel (2.4.23) with CONFIG_BRIDGE=m but when I modprobe bridge, I get this stuff: /lib/modules/2.4.23-ck1/kernel/net/bridge/bridge.o: unresolved symbol br_ioctl_hook /lib/modules/2.4.23-ck1/kernel/net/bridge/bridge.o: unresolved symbol br_handle_frame_hook /lib/modules/2.4.23-ck1/kernel/net/bridge/bridge.o: insmod /lib/modules/2.4.23-ck1/kernel/net/bridge/bridge.o failed /lib/modules/2.4.23-ck1/kernel/net/bridge/bridge.o: insmod bridge failed I can't figur...