diff options
| author | Eric Dumazet <[email protected]> | 2008-03-06 02:30:47 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2008-03-06 02:30:47 +0000 |
| commit | ee6b967301b4aa5d4a4b61e2f682f086266db9fb (patch) | |
| tree | 197c2430f87733dc80d00d1971f1be2a0e562358 /net/ipv4/tcp_input.c | |
| parent | [IPV6]: Remove commented lines. (diff) | |
| download | kernel-ee6b967301b4aa5d4a4b61e2f682f086266db9fb.tar.gz kernel-ee6b967301b4aa5d4a4b61e2f682f086266db9fb.zip | |
[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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions
