patch-2.1.80 linux/net/core/dev.c
Next file: linux/net/core/neighbour.c
Previous file: linux/net/core/Makefile
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Tue Jan 20 16:45:08 1998
- Orig file:
v2.1.79/linux/net/core/dev.c
- Orig date:
Mon Jan 12 22:09:24 1998
diff -u --recursive --new-file v2.1.79/linux/net/core/dev.c linux/net/core/dev.c
@@ -724,7 +724,7 @@
}
#ifdef CONFIG_BRIDGE
-static inline void handle_bridge(struct skbuff *skb, unsigned short type)
+static inline void handle_bridge(struct sk_buff *skb, unsigned short type)
{
if (br_stats.flags & BR_UP && br_protocol_ok(ntohs(type)))
{
@@ -739,7 +739,7 @@
if(br_receive_frame(skb))
{
sti();
- continue;
+ return;
}
/*
* Pull the MAC header off for the copy going to
@@ -1500,6 +1500,16 @@
ifr->ifr_ifindex = dev->ifindex;
return 0;
+ case SIOCGIFTXQLEN:
+ ifr->ifr_qlen = dev->tx_queue_len;
+ return 0;
+
+ case SIOCSIFTXQLEN:
+ if(ifr->ifr_qlen<2 || ifr->ifr_qlen>1024)
+ return -EINVAL;
+ dev->tx_queue_len = ifr->ifr_qlen;
+ return 0;
+
/*
* Unknown or private ioctl
*/
@@ -1591,6 +1601,7 @@
case SIOCGIFSLAVE:
case SIOCGIFMAP:
case SIOCGIFINDEX:
+ case SIOCGIFTXQLEN:
ret = dev_ifsioc(&ifr, cmd);
if (!ret) {
#ifdef CONFIG_NET_ALIAS
@@ -1618,6 +1629,7 @@
case SIOCADDMULTI:
case SIOCDELMULTI:
case SIOCSIFHWBROADCAST:
+ case SIOCSIFTXQLEN:
if (!suser())
return -EPERM;
rtnl_lock();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov