diff options
Diffstat (limited to 'net/ipv4/netfilter/nf_nat_proto_tcp.c')
-rw-r--r-- | net/ipv4/netfilter/nf_nat_proto_tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/nf_nat_proto_tcp.c b/net/ipv4/netfilter/nf_nat_proto_tcp.c index 0d67bb80130..6fcc865dc2e 100644 --- a/net/ipv4/netfilter/nf_nat_proto_tcp.c +++ b/net/ipv4/netfilter/nf_nat_proto_tcp.c | |||
@@ -23,7 +23,7 @@ static u_int16_t tcp_port_rover; | |||
23 | 23 | ||
24 | static void | 24 | static void |
25 | tcp_unique_tuple(struct nf_conntrack_tuple *tuple, | 25 | tcp_unique_tuple(struct nf_conntrack_tuple *tuple, |
26 | const struct nf_nat_range *range, | 26 | const struct nf_nat_ipv4_range *range, |
27 | enum nf_nat_manip_type maniptype, | 27 | enum nf_nat_manip_type maniptype, |
28 | const struct nf_conn *ct) | 28 | const struct nf_conn *ct) |
29 | { | 29 | { |
@@ -55,7 +55,7 @@ tcp_manip_pkt(struct sk_buff *skb, | |||
55 | iph = (struct iphdr *)(skb->data + iphdroff); | 55 | iph = (struct iphdr *)(skb->data + iphdroff); |
56 | hdr = (struct tcphdr *)(skb->data + hdroff); | 56 | hdr = (struct tcphdr *)(skb->data + hdroff); |
57 | 57 | ||
58 | if (maniptype == IP_NAT_MANIP_SRC) { | 58 | if (maniptype == NF_NAT_MANIP_SRC) { |
59 | /* Get rid of src ip and src pt */ | 59 | /* Get rid of src ip and src pt */ |
60 | oldip = iph->saddr; | 60 | oldip = iph->saddr; |
61 | newip = tuple->src.u3.ip; | 61 | newip = tuple->src.u3.ip; |