patch-2.3.15 linux/net/decnet/sysctl_net_decnet.c

Next file: linux/net/econet/econet.c
Previous file: linux/net/decnet/dn_timer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.14/linux/net/decnet/sysctl_net_decnet.c linux/net/decnet/sysctl_net_decnet.c
@@ -247,7 +247,7 @@
 		dn_dev_devices_off();
 
 		decnet_address = addr;
-		dn_dn2eth(decnet_ether_address, decnet_address);
+		dn_dn2eth(decnet_ether_address, dn_ntohs(decnet_address));
 
 		dn_dev_devices_on();
 	}
@@ -281,7 +281,7 @@
 		dn_dev_devices_off();
 
 		decnet_address = dnaddr;
-		dn_dn2eth(decnet_ether_address, decnet_address);
+		dn_dn2eth(decnet_ether_address, dn_ntohs(decnet_address));
 
 		dn_dev_devices_on();
 
@@ -345,7 +345,7 @@
 
 		devname[newlen] = 0;
 
-		if ((dev = dev_get(devname)) == NULL)
+		if ((dev = __dev_get_by_name(devname)) == NULL)
 			return -ENODEV;
 
 		if (dev->dn_ptr == NULL)
@@ -381,7 +381,7 @@
 
 		devname[*lenp] = 0;
 
-		if ((dev = dev_get(devname)) == NULL)
+		if ((dev = __dev_get_by_name(devname)) == NULL)
 			return -ENODEV;
 
 		if (dev->dn_ptr == NULL)

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