Re: Updating the dead-gateway detection patch...

From: Brian Haley
Date: Thu Dec 11 2008 - 21:10:04 EST


Philip A. Prindevill wrote:
+ #ifdef CONFIG_NET_NS
+ if (fib_lookup(dev->nd_net, &fl, &res) != 0)
+ #else
+ if (fib_lookup(&init_net, &fl, &res) != 0)
+ #endif

Yuck. You should use dev_net(dev), it's an inline in linux/netdevice.h. Cscope is your friend :)

-Brian
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html