Displaying 6 results from an estimated 6 matches for "siocgifbr".
2007 Apr 18
0
[Bridge] [PATCH] (9/11) bridge -- new ioctl interface for 32/64 compatiablity
...-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_deviceless(uarg);
+
+ case SIOCBRADDBR:
+ case SIOCBRDELBR:
+ {
+ char buf[IFNAMSIZ];
+
+ if (!capable(CAP_NET_ADMIN))
+ return -EPERM;
+
+ if (copy_from_user(buf, (void __user *) uarg, IFNAMSIZ))
+ return -EFAULT;
+
+ buf[IFNAMSIZ-1] = 0;
+ if (cmd == SI...
2006 Oct 31
1
Fw: domU network problem , 10/30 progress
...ble
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
2. brctl does not work properly on our environment. ''strace brctl show''
indicates ''ioctl(3, SIOCGIFBR, 0xffc381d4) = -1 EINVAL (Invalid
argument)'' . And on SLES 10 environment, brctl show works fine.
In addition, how the dhcp problem is gone ? Bulent reconfiged the dhcp
server to have more show-live IP available . Now, domU can get IP
cso238:/ # ifconfig
eth0 Link enca...
2006 Oct 31
1
Fw: domU network problem , 10/30 progress
...ble
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
2. brctl does not work properly on our environment. ''strace brctl show''
indicates ''ioctl(3, SIOCGIFBR, 0xffc381d4) = -1 EINVAL (Invalid
argument)'' . And on SLES 10 environment, brctl show works fine.
In addition, how the dhcp problem is gone ? Bulent reconfiged the dhcp
server to have more show-live IP available . Now, domU can get IP
cso238:/ # ifconfig
eth0 Link enca...
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
2023 Aug 19
1
[Bridge] [PATCH] net: bridge: Fix refcnt issues in dev_ioctl
...e/br_ioctl.c b/net/bridge/br_ioctl.c
index f213ed108361..291dbc5d2a99 100644
--- a/net/bridge/br_ioctl.c
+++ b/net/bridge/br_ioctl.c
@@ -399,8 +399,6 @@ int br_ioctl_stub(struct net *net, struct net_bridge *br, unsigned int cmd,
{
int ret = -EOPNOTSUPP;
- rtnl_lock();
-
switch (cmd) {
case SIOCGIFBR:
case SIOCSIFBR:
@@ -434,7 +432,5 @@ int br_ioctl_stub(struct net *net, struct net_bridge *br, unsigned int cmd,
break;
}
- rtnl_unlock();
-
return ret;
}
diff --git a/net/core/dev_ioctl.c b/net/core/dev_ioctl.c
index 3730945ee294..17df956df8cb 100644
--- a/net/core/dev_ioctl.c
+++ b/ne...
2023 Jun 10
2
[Bridge] [syzbot] [net?] unregister_netdevice: waiting for DEV to become free (8)
Hello,
syzbot found the following issue on:
HEAD commit: 67faabbde36b selftests/bpf: Add missing prototypes for sev..
git tree: bpf-next
console+strace: https://syzkaller.appspot.com/x/log.txt?x=1381363b280000
kernel config: https://syzkaller.appspot.com/x/.config?x=5335204dcdecfda
dashboard link: https://syzkaller.appspot.com/bug?extid=881d65229ca4f9ae8c84
compiler: gcc (Debian