net: skb->rtable accessor
[deliverable/linux.git] / net / ipv4 / netfilter / nf_nat_helper.c
index cf7a42bf9820d7433631966d4dd88fb7470f2bcb..155c008626c825729e5ac09fa45740e0bd8486c8 100644 (file)
@@ -140,7 +140,7 @@ nf_nat_mangle_tcp_packet(struct sk_buff *skb,
                         const char *rep_buffer,
                         unsigned int rep_len)
 {
-       struct rtable *rt = skb->rtable;
+       struct rtable *rt = skb_rtable(skb);
        struct iphdr *iph;
        struct tcphdr *tcph;
        int oldlen, datalen;
@@ -218,7 +218,7 @@ nf_nat_mangle_udp_packet(struct sk_buff *skb,
                         const char *rep_buffer,
                         unsigned int rep_len)
 {
-       struct rtable *rt = skb->rtable;
+       struct rtable *rt = skb_rtable(skb);
        struct iphdr *iph;
        struct udphdr *udph;
        int datalen, oldlen;
This page took 0.024683 seconds and 5 git commands to generate.