patch-2.4.1 linux/net/atm/lec.c
Next file: linux/net/atm/lec.h
Previous file: linux/net/appletalk/ddp.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Mon Jan 22 13:30:21 2001
- Orig file:
v2.4.0/linux/net/atm/lec.c
- Orig date:
Thu Jan 4 13:00:55 2001
diff -u --recursive --new-file v2.4.0/linux/net/atm/lec.c linux/net/atm/lec.c
@@ -51,6 +51,11 @@
#define DPRINTK(format,args...)
#endif
+struct net_bridge_fdb_entry *(*br_fdb_get_hook)(struct net_bridge *br,
+ unsigned char *addr);
+void (*br_fdb_put_hook)(struct net_bridge_fdb_entry *ent);
+
+
#define DUMP_PACKETS 0 /* 0 = None,
* 1 = 30 first bytes
* 2 = Whole packet
@@ -853,8 +858,11 @@
if (dev_lec[i] != NULL) {
priv = (struct lec_priv *)dev_lec[i]->priv;
#if defined(CONFIG_TR)
- unregister_trdev(dev_lec[i]);
+ if (priv->is_trdev)
+ unregister_trdev(dev_lec[i]);
+ else
#endif
+ unregister_netdev(dev_lec[i]);
kfree(dev_lec[i]);
dev_lec[i] = NULL;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)