]> err.no Git - linux-2.6/blobdiff - net/ipv4/arp.c
[IPV6]: Remove unused code in ndisc_send_redirect().
[linux-2.6] / net / ipv4 / arp.c
index 69e80bd9774af9c8d9bf4115ee76e2fda36c8bdf..efe01df8fc0ee1be88e2555ecbb2508647588eb7 100644 (file)
@@ -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) {