Skip to content
  • Herbert Xu's avatar
    [NETFILTER]: sip: Fix RTP address NAT · cfd6c380
    Herbert Xu authored
    
    
    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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    cfd6c380