diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-06-02 01:14:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-03 05:51:02 -0400 |
commit | 511c3f92ad5b6d9f8f6464be1b4f85f0422be91a (patch) | |
tree | 3e368d9a78f87eb9dd7ff9e57f4aab3f4a96e3b1 /drivers/net/appletalk | |
parent | dfbf97f3ac980b69dfbc41c83a208211a38443e8 (diff) |
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>
Diffstat (limited to 'drivers/net/appletalk')
-rw-r--r-- | drivers/net/appletalk/ipddp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/appletalk/ipddp.c b/drivers/net/appletalk/ipddp.c index 9832b757f109..78cea5e80b1d 100644 --- a/drivers/net/appletalk/ipddp.c +++ b/drivers/net/appletalk/ipddp.c | |||
@@ -115,7 +115,7 @@ static struct net_device * __init ipddp_init(void) | |||
115 | */ | 115 | */ |
116 | static int ipddp_xmit(struct sk_buff *skb, struct net_device *dev) | 116 | static int ipddp_xmit(struct sk_buff *skb, struct net_device *dev) |
117 | { | 117 | { |
118 | __be32 paddr = ((struct rtable*)skb->dst)->rt_gateway; | 118 | __be32 paddr = skb_rtable(skb)->rt_gateway; |
119 | struct ddpehdr *ddp; | 119 | struct ddpehdr *ddp; |
120 | struct ipddp_route *rt; | 120 | struct ipddp_route *rt; |
121 | struct atalk_addr *our_addr; | 121 | struct atalk_addr *our_addr; |