patch-2.3.14 linux/net/ipv4/fib_rules.c

Next file: linux/net/ipv4/fib_semantics.c
Previous file: linux/net/ipv4/fib_frontend.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.13/linux/net/ipv4/fib_rules.c linux/net/ipv4/fib_rules.c
@@ -179,7 +179,7 @@
 		memcpy(&new_r->r_preference, RTA_DATA(rta[RTA_PRIORITY-1]), 4);
 	new_r->r_table = table_id;
 	if (rta[RTA_IIF-1]) {
-		struct device *dev;
+		struct net_device *dev;
 		memcpy(new_r->r_ifname, RTA_DATA(rta[RTA_IIF-1]), IFNAMSIZ);
 		new_r->r_ifname[IFNAMSIZ-1] = 0;
 		new_r->r_ifindex = -1;
@@ -251,7 +251,7 @@
 #endif
 
 
-static void fib_rules_detach(struct device *dev)
+static void fib_rules_detach(struct net_device *dev)
 {
 	struct fib_rule *r;
 
@@ -264,7 +264,7 @@
 	}
 }
 
-static void fib_rules_attach(struct device *dev)
+static void fib_rules_attach(struct net_device *dev)
 {
 	struct fib_rule *r;
 
@@ -349,7 +349,7 @@
 
 static int fib_rules_event(struct notifier_block *this, unsigned long event, void *ptr)
 {
-	struct device *dev = ptr;
+	struct net_device *dev = ptr;
 
 	if (event == NETDEV_UNREGISTER)
 		fib_rules_detach(dev);

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