patch-1.3.46 linux/net/netrom/nr_route.c

Next file: linux/CREDITS
Previous file: linux/net/netrom/af_netrom.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.45/linux/net/netrom/nr_route.c linux/net/netrom/nr_route.c
@@ -515,7 +515,6 @@
 static struct device *nr_ax25_dev_get(char *devname)
 {
 	struct device *dev;
-	ax25_address callsign;
 
 	if ((dev = dev_get(devname)) == NULL)
 		return NULL;
@@ -523,9 +522,11 @@
 	if ((dev->flags & IFF_UP) && dev->type == ARPHRD_AX25)
 		return dev;
 
+#ifdef CONFIG_BPQETHER
 	if ((dev->flags & IFF_UP) && dev->type == ARPHRD_ETHER)
-		if (arp_query((unsigned char *)&callsign, dev->pa_addr, dev))
+		if (ax25_bpq_get_addr(dev) != NULL)
 			return dev;
+#endif
 	
 	return NULL;
 }


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this