]> err.no Git - linux-2.6/commit
[NETFILTER]: nf_nat_sip: split up SDP mangling
authorPatrick McHardy <kaber@trash.net>
Wed, 26 Mar 2008 03:26:08 +0000 (20:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Mar 2008 03:26:08 +0000 (20:26 -0700)
commit4ab9e64e5e3c0516577818804aaf13a630d67bc9
tree70450c93e83f5038dc14da7614d669109e59a148
parenta9c1d35917c0c95c8f95a8e497fb91e301419693
[NETFILTER]: nf_nat_sip: split up SDP mangling

The SDP connection addresses may be contained in the payload multiple
times (in the session description and/or once per media description),
currently only the session description is properly updated. Split up
SDP mangling so the function setting up expectations only updates the
media port, update connection addresses from media descriptions while
parsing them and at the end update the session description when the
final addresses are known.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter/nf_conntrack_sip.h
net/ipv4/netfilter/nf_nat_sip.c
net/netfilter/nf_conntrack_sip.c