[NETFILTER]: ip_nat_tftp: Fix expectation NAT

When a TFTP client is SNATed so that the port is also changed, the
port is never changed back for the expected connection.

Signed-off-by: Marcus Sundberg <marcus@ingate.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Marcus Sundberg and committed by David S. Miller 2f9616d4 66e05225

+4 -1
+4 -1
net/ipv4/netfilter/ip_nat_tftp.c
··· 42 enum ip_conntrack_info ctinfo, 43 struct ip_conntrack_expect *exp) 44 { 45 - exp->saved_proto.udp.port = exp->tuple.dst.u.tcp.port; 46 exp->dir = IP_CT_DIR_REPLY; 47 exp->expectfn = ip_nat_follow_master; 48 if (ip_conntrack_expect_related(exp) != 0)
··· 42 enum ip_conntrack_info ctinfo, 43 struct ip_conntrack_expect *exp) 44 { 45 + struct ip_conntrack *ct = exp->master; 46 + 47 + exp->saved_proto.udp.port 48 + = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port; 49 exp->dir = IP_CT_DIR_REPLY; 50 exp->expectfn = ip_nat_follow_master; 51 if (ip_conntrack_expect_related(exp) != 0)