From: Eric Dumazet Date: Thu, 6 Mar 2008 02:30:47 +0000 (-0800) Subject: [IPV4]: Add 'rtable' field in struct sk_buff to alias 'dst' and avoid casts X-Git-Tag: v2.6.26-rc1~1138^2~472 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee6b967301b4aa5d4a4b61e2f682f086266db9fb;p=pandora-kernel.git [IPV4]: Add 'rtable' field in struct sk_buff to alias 'dst' and avoid casts (Anonymous) unions can help us to avoid ugly casts. A common cast it the (struct rtable *)skb->dst one. Defining an union like : union { struct dst_entry *dst; struct rtable *rtable; }; permits to use skb->rtable in place. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed