X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fipv4%2Farp.c;h=efe01df8fc0ee1be88e2555ecbb2508647588eb7;hb=061964fb988ca51087948975da66ff523b3a5852;hp=69e80bd9774af9c8d9bf4115ee76e2fda36c8bdf;hpb=255333c1db3ec63921de29b134418a4e56e5921e;p=linux-2.6 diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 69e80bd977..efe01df8fc 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c @@ -475,7 +475,7 @@ int arp_find(unsigned char *haddr, struct sk_buff *skb) return 1; } - paddr = ((struct rtable*)skb->dst)->rt_gateway; + paddr = skb->rtable->rt_gateway; if (arp_set_predefined(inet_addr_type(&init_net, paddr), haddr, paddr, dev)) return 0; @@ -814,7 +814,7 @@ static int arp_process(struct sk_buff *skb) if (arp->ar_op == htons(ARPOP_REQUEST) && ip_route_input(skb, tip, sip, 0, dev) == 0) { - rt = (struct rtable*)skb->dst; + rt = skb->rtable; addr_type = rt->rt_type; if (addr_type == RTN_LOCAL) {