Displaying 7 results from an estimated 7 matches for "ifr_data".
2005 Oct 31
1
ip tunnel doesn''t show warning or error
This is really strange behavior ..
root@garfield ~# ip tunnel add testing123 mode ipip remote 192.168.1.1
local 192.168.1.12
root@garfield ~# ip tunnel show
..
testing123: ip/ip remote 192.168.1.1 local 192.168.1.12 ttl inherit
root@garfield ~# ip tunnel add testingabc mode ipip remote 192.168.1.1
local 192.168.1.12
root@garfield ~# echo $?
0
root@garfield ~# ip tunnel show
..
testing123:
2007 Apr 18
0
[Bridge] [PATCH] (4/11) bridge - ioctl cleanup and consolidation
...21 +19,6 @@
#include <asm/uaccess.h>
#include "br_private.h"
-static int br_dev_do_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
-{
- unsigned long args[4];
- unsigned long *data;
-
- if (cmd != SIOCDEVPRIVATE)
- return -EOPNOTSUPP;
-
- data = (unsigned long *)rq->ifr_data;
- if (copy_from_user(args, data, 4*sizeof(unsigned long)))
- return -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...
2007 Apr 18
0
[Bridge] [PATCH] (9/11) bridge -- new ioctl interface for 32/64 compatiablity
...o do the translation for 32/64bit ioctl compatability.
+ */
+static int old_dev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
{
struct net_bridge *br = netdev_priv(dev);
unsigned long args[4];
-
- if (cmd != SIOCDEVPRIVATE)
- return -EOPNOTSUPP;
if (copy_from_user(args, rq->ifr_data, sizeof(args)))
return -EFAULT;
@@ -92,25 +115,7 @@
switch (args[0]) {
case BRCTL_ADD_IF:
case BRCTL_DEL_IF:
- {
- struct net_device *dev;
- int ret;
-
- if (!capable(CAP_NET_ADMIN))
- return -EPERM;
-
- dev = dev_get_by_index(args[1]);
- if (dev == NULL)
- return -EINVAL;
-
- if...
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...in_addr);
- broadcast = inet_ntoa(addr->sin_addr);
- }
- else {
- perror("SIOCGIFBRDADDR");
- broadcast = "unable to determine";
- }
- // Get the bandwidth for this NIC
- ecmd.cmd = ETHTOOL_GSET;
- ifr.ifr_data = (caddr_t)&ecmd;
- bandwidth = 10;
-
- // TODO: Error checking on this ioctl. For now, assume success
- ret = ioctl(sock, SIOCETHTOOL, &ifr);
- if (1) {
-
- if (ecmd.supported & SUPPORTED_10000baseT_Full) {
- bandwidth = 10000;
-...
2010 Apr 26
2
Patch supercedes previous patch...
In looking at the code I realized that the last of the HAL depenencies were
removed with this patch. So, I'm pushing an updated patch that contains
none of the HAL code in it.
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
2007 Apr 18
7
[Bridge] (no subject)
Dear Sir,
I was trying to install bridge as we are installing
scps gateway in our testbed.This requires us to
install the bridge.
Our Linux version is 2.4.18 ~3 and we are using redhat
7.2
Please let me know which is the bridge I should
install and how to configure it.
Before configuring the bridge what I should check in
my configuration.
Thanks for your time,
Sincerely
Rama
=====
I hear