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:
committed by
David S. Miller
parent
dfbf97f3ac
commit
511c3f92ad
@@ -115,7 +115,7 @@ static struct net_device * __init ipddp_init(void)
|
||||
*/
|
||||
static int ipddp_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
{
|
||||
__be32 paddr = ((struct rtable*)skb->dst)->rt_gateway;
|
||||
__be32 paddr = skb_rtable(skb)->rt_gateway;
|
||||
struct ddpehdr *ddp;
|
||||
struct ipddp_route *rt;
|
||||
struct atalk_addr *our_addr;
|
||||
|
Reference in New Issue
Block a user