commit | ee6b967301b4aa5d4a4b61e2f682f086266db9fb | [log] [tgz] |
---|---|---|
author | Eric Dumazet <dada1@cosmosbay.com> | Wed Mar 05 18:30:47 2008 -0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Mar 05 18:30:47 2008 -0800 |
tree | 197c2430f87733dc80d00d1971f1be2a0e562358 | |
parent | a05c44f6d5fb6cd29da04f96bf5ffaa05f545ac5 [diff] |
[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 <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>