Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.1 /net/atm/lec.c

Filename:/net/atm/lec.c
Lines Added:9
Lines Deleted:1
Also changed in: (Previous) 2.4.1-pre12  2.4.1-pre11  2.4.1-pre10  2.4.0-ac12  2.4.0-ac11  2.4.0-ac10 
(Following) 2.4.2-ac15  2.4.2-ac16  2.4.2-ac17  2.4.2-ac18  2.4.2-ac19  2.4.2-ac20 

Location
[  2.4.1
  [  net
    [  atm
       o  lec.c

Patch

diff -u --recursive --new-file v2.4.0/linux/net/atm/lec.c linux/net/atm/lec.c
--- v2.4.0/linux/net/atm/lec.c   Thu Jan  4 13:00:55 2001
+++ linux/net/atm/lec.c   Mon Jan 22 13:30:21 2001
@@ -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;
                 }


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.