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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux