patch-1.3.78 linux/net/core/dev.c
Next file: linux/net/ethernet/pe2.c
Previous file: linux/net/ax25/af_ax25.c
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Mon Mar 25 08:58:24 1996
- Orig file:
v1.3.77/linux/net/core/dev.c
- Orig date:
Thu Mar 21 20:36:55 1996
diff -u --recursive --new-file v1.3.77/linux/net/core/dev.c linux/net/core/dev.c
@@ -655,7 +655,6 @@
else
kfree_skb(skb, FREE_WRITE);
-
/*
* Again, see if we can transmit anything now.
* [Ought to take this out judging by tests it slows
@@ -1142,8 +1141,14 @@
if(ifr.ifr_mtu<68)
return -EINVAL;
- dev->mtu = ifr.ifr_mtu;
- ret = 0;
+
+ if (dev->change_mtu)
+ ret = (*dev->change_mtu)(dev, ifr.ifr_mtu);
+ else
+ {
+ dev->mtu = ifr.ifr_mtu;
+ ret = 0;
+ }
break;
case SIOCGIFMEM: /* Get the per device memory space. We can add this but currently
@@ -1301,6 +1306,8 @@
extern int ni65_init(void);
extern int pi_init(void);
extern int dec21040_init(void);
+extern void sdla_setup(void);
+extern void dlci_setup(void);
int net_dev_init(void)
{
@@ -1332,6 +1339,12 @@
#if defined(CONFIG_DEC_ELCP)
dec21040_init();
#endif
+#if defined(CONFIG_DLCI)
+ dlci_setup();
+#endif
+#if defined(CONFIG_SDLA)
+ sdla_setup();
+#endif
/*
* SLHC if present needs attaching so other people see it
* even if not opened.
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this