patch-2.3.47 linux/drivers/net/wan/lapbether.c
Next file: linux/drivers/net/wan/sbni.c
Previous file: linux/drivers/net/wan/dlci.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Feb 17 09:18:47 2000
- Orig file:
v2.3.46/linux/drivers/net/wan/lapbether.c
- Orig date:
Sun Feb 13 19:29:04 2000
diff -u --recursive --new-file v2.3.46/linux/drivers/net/wan/lapbether.c linux/drivers/net/wan/lapbether.c
@@ -163,7 +163,7 @@
dev = lapbeth_get_x25_dev(dev);
- if (dev == NULL || test_bit(LINK_STATE_START, &dev->state) == 0) {
+ if (dev == NULL || !netif_running(dev)) {
kfree_skb(skb);
return 0;
}
@@ -215,7 +215,7 @@
* Just to be *really* sure not to send anything if the interface
* is down, the ethernet device may have gone.
*/
- if (!test_bit(LINK_STATE_START, &dev->state)) {
+ if (!netif_running(dev)) {
lapbeth_check_devices(dev);
kfree_skb(skb);
return -ENODEV;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)