patch-2.3.99-pre3 linux/drivers/net/shaper.c

Next file: linux/drivers/net/starfire.c
Previous file: linux/drivers/net/rrunner.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre2/linux/drivers/net/shaper.c linux/drivers/net/shaper.c
@@ -485,20 +485,24 @@
 
 static int shaper_neigh_setup(struct neighbour *n)
 {
+#ifdef CONFIG_INET
 	if (n->nud_state == NUD_NONE) {
 		n->ops = &arp_broken_ops;
 		n->output = n->ops->output;
 	}
+#endif	
 	return 0;
 }
 
 static int shaper_neigh_setup_dev(struct net_device *dev, struct neigh_parms *p)
 {
+#ifdef CONFIG_INET
 	if (p->tbl->family == AF_INET) {
 		p->neigh_setup = shaper_neigh_setup;
 		p->ucast_probes = 0;
 		p->mcast_probes = 0;
 	}
+#endif	
 	return 0;
 }
 

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