aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/netfilter/nf_nat_sip.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-03-25 20:22:37 -0700
committerDavid S. Miller <davem@davemloft.net>2008-03-25 20:22:37 -0700
commit33cb1e9a93312f0cdd34e0be2bc88e893ff96a33 (patch)
tree9692ef4590284acb93baccff502fce5a2853a410 /net/ipv4/netfilter/nf_nat_sip.c
parent[NETFILTER]: nf_conntrack_sip: support method specific request/response handling (diff)
downloadlinux-dev-33cb1e9a93312f0cdd34e0be2bc88e893ff96a33.tar.xz
linux-dev-33cb1e9a93312f0cdd34e0be2bc88e893ff96a33.zip
[NETFILTER]: nf_conntrack_sip: perform NAT after parsing
Perform NAT last after parsing the packet. This makes no difference currently, but is needed when dealing with registrations to make sure we seen the unNATed addresses. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter/nf_nat_sip.c')
-rw-r--r--net/ipv4/netfilter/nf_nat_sip.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv4/netfilter/nf_nat_sip.c b/net/ipv4/netfilter/nf_nat_sip.c
index 5b4a5cd23f39..b44281011d6d 100644
--- a/net/ipv4/netfilter/nf_nat_sip.c
+++ b/net/ipv4/netfilter/nf_nat_sip.c
@@ -104,9 +104,6 @@ static unsigned int ip_nat_sip(struct sk_buff *skb,
union nf_inet_addr addr;
__be16 port;
- if (*datalen < strlen("SIP/2.0"))
- return NF_ACCEPT;
-
/* Basic rules: requests and responses. */
if (strnicmp(*dptr, "SIP/2.0", strlen("SIP/2.0")) != 0) {
if (ct_sip_parse_request(ct, *dptr, *datalen,