As suggested by Julian Anastasov Cc: Julian Anastasov Signed-off-by: Simon Horman Index: lvs-test-2.6/include/net/ip_vs.h =================================================================== --- lvs-test-2.6.orig/include/net/ip_vs.h 2010-10-22 21:16:52.000000000 +0200 +++ lvs-test-2.6/include/net/ip_vs.h 2010-10-22 21:16:56.000000000 +0200 @@ -1097,6 +1097,11 @@ static inline void ip_vs_conn_drop_connt /* CONFIG_IP_VS_NFCT */ #endif +static inline struct net *ipvs_skbnet(struct sk_buff *skb) +{ + return dev_net(skb->dev ? : skb_dst(skb)->dev); +} + #endif /* __KERNEL__ */ #endif /* _NET_IP_VS_H */ -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html