提交 dfbf97f3 编写于 作者: E Eric Dumazet 提交者: David S. Miller

net: add _skb_dst opaque field

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: NEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3be8c940
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册