[IPV4]: Add 'rtable' field in struct sk_buff to alias 'dst' and avoid casts
[deliverable/linux.git] / net / ipv4 / udp_ipv4.c
index 40978de7fb5197322546942d24bde1db020472ad..fd14c2c50ed41750de7ad41669cd6c9e522c270a 100644 (file)
@@ -893,7 +893,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct hlist_head udptable[],
        struct sock *sk;
        struct udphdr *uh = udp_hdr(skb);
        unsigned short ulen;
-       struct rtable *rt = (struct rtable*)skb->dst;
+       struct rtable *rt = skb->rtable;
        __be32 saddr = ip_hdr(skb)->saddr;
        __be32 daddr = ip_hdr(skb)->daddr;
 
This page took 0.033543 seconds and 5 git commands to generate.