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
@ -57,7 +57,7 @@
|
||||
static void ip_cmsg_recv_pktinfo(struct msghdr *msg, struct sk_buff *skb)
|
||||
{
|
||||
struct in_pktinfo info;
|
||||
struct rtable *rt = skb->rtable;
|
||||
struct rtable *rt = skb_rtable(skb);
|
||||
|
||||
info.ipi_addr.s_addr = ip_hdr(skb)->daddr;
|
||||
if (rt) {
|
||||
|
Reference in New Issue
Block a user