]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER]: sip: Fix RTP address NAT
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 3 May 2007 10:35:31 +0000 (03:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 May 2007 10:35:31 +0000 (03:35 -0700)
commita7cf21005d8e4f6226fad866ddc1e240ee1a4b5d
treee89cf155ed3f19bdce288da522e5f1b7445065b9
parente3a2a19621e1dc07b6179b6af66f18fc2b442775
[NETFILTER]: sip: Fix RTP address NAT

I needed to use this recently to talk to a Cisco server.  In my case
I only did SNAT while the Cisco server used a different address for
RTP traffic than the one for SIP.  I discovered that nf_nat_sip NATed
the RTP address to the SIP one which was unnecessary but OK.  However,
in doing so it did not DNAT the destination address on the RTP traffic
to the Cisco back to the original RTP address.

This patch corrects this by noting down the RTP address and using it
when the expectation fires.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/nf_nat_sip.c