Skip to content

Commit

Permalink
net: add _skb_dst opaque field
Browse files Browse the repository at this point in the history
struct sk_buff uses one union to define dst and rtable fields.

We want to replace direct access to these pointers by accessors.

First patch adds a new "unsigned long _skb_dst;" opaque field
in this union.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 3, 2009
1 parent 3be8c94 commit dfbf97f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ struct sk_buff {
union {
struct dst_entry *dst;
struct rtable *rtable;
unsigned long _skb_dst;
};
#ifdef CONFIG_XFRM
struct sec_path *sp;
Expand Down

0 comments on commit dfbf97f

Please sign in to comment.