git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a05c44f
)
[IPV4]: Add 'rtable' field in struct sk_buff to alias 'dst' and avoid casts
author
Eric Dumazet
<dada1@cosmosbay.com>
Thu, 6 Mar 2008 02:30:47 +0000
(18:30 -0800)
committer
David 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