[IPV4]: Add 'rtable' field in struct sk_buff to alias 'dst' and avoid casts
authorEric Dumazet <dada1@cosmosbay.com>
Thu, 6 Mar 2008 02:30:47 +0000 (18:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Mar 2008 02:30:47 +0000 (18:30 -0800)
(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>

No differences found