patch-2.3.99-pre7 linux/net/bridge/br_if.c

Next file: linux/net/bridge/br_private.h
Previous file: linux/net/ax25/ax25_timer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/net/bridge/br_if.c linux/net/bridge/br_if.c
@@ -5,7 +5,7 @@
  *	Authors:
  *	Lennert Buytenhek		<buytenh@gnu.org>
  *
- *	$Id: br_if.c,v 1.2 2000/02/21 15:51:34 davem Exp $
+ *	$Id: br_if.c,v 1.3 2000/05/05 02:17:17 davem Exp $
  *
  *	This program is free software; you can redistribute it and/or
  *	modify it under the terms of the GNU General Public License
@@ -74,7 +74,7 @@
 
 	b = &bridge_list;
 	while ((br = *b) != NULL) {
-		if (!strncmp(br->name, name, IFNAMSIZ))
+		if (!strncmp(br->dev.name, name, IFNAMSIZ))
 			return b;
 
 		b = &(br->next);
@@ -102,9 +102,8 @@
 	memset(br, 0, sizeof(*br));
 	dev = &br->dev;
 
-	strncpy(br->name, name, IFNAMSIZ);
+	strncpy(dev->name, name, IFNAMSIZ);
 	dev->priv = br;
-	dev->name = br->name;
 	ether_setup(dev);
 	br_dev_setup(dev);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)