net: skb->rtable accessor

Define skb_rtable(const struct sk_buff *skb) accessor to get rtable from skb

Delete skb->rtable field

Setting rtable is not allowed, just set dst instead as rtable is an alias.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Eric Dumazet
2009-06-02 05:14:27 +00:00
committed by David S. Miller
parent dfbf97f3ac
commit 511c3f92ad
23 changed files with 89 additions and 73 deletions

View File

@@ -258,10 +258,10 @@ META_COLLECTOR(int_rtclassid)
META_COLLECTOR(int_rtiif)
{
if (unlikely(skb->rtable == NULL))
if (unlikely(skb_rtable(skb) == NULL))
*err = -1;
else
dst->value = skb->rtable->fl.iif;
dst->value = skb_rtable(skb)->fl.iif;
}
/**************************************************************************