Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: iptables: Devel

[NETFILTER 04/04]: nf_nat_sip: don't drop short packets

 

 

iptables devel RSS feed   Index | Next | Previous | View Threaded


kaber at trash

Aug 14, 2007, 9:40 AM

Post #1 of 1 (620 views)
Permalink
[NETFILTER 04/04]: nf_nat_sip: don't drop short packets

[NETFILTER]: nf_nat_sip: don't drop short packets

Don't drop packets shorter than "SIP/2.0", just ignore them. Keep-alives
can validly be shorter for example.

Signed-off-by: Patrick McHardy <kaber [at] trash>

---
commit 12ad6c49be7b0cb1e9f32750e34cde5d29d40a48
tree 6dc3ff60e52adc58a3a02d725f819cc6811b1664
parent 492d0e43049e7f420c1c64044ab57abf278fbead
author Patrick McHardy <kaber [at] trash> Tue, 14 Aug 2007 18:37:58 +0200
committer Patrick McHardy <kaber [at] trash> Tue, 14 Aug 2007 18:37:58 +0200

net/ipv4/netfilter/nf_nat_sip.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ipv4/netfilter/nf_nat_sip.c b/net/ipv4/netfilter/nf_nat_sip.c
index a889ec3..e14d419 100644
--- a/net/ipv4/netfilter/nf_nat_sip.c
+++ b/net/ipv4/netfilter/nf_nat_sip.c
@@ -104,7 +104,7 @@ static unsigned int ip_nat_sip(struct sk_buff **pskb,
dataoff = ip_hdrlen(*pskb) + sizeof(struct udphdr);
datalen = (*pskb)->len - dataoff;
if (datalen < sizeof("SIP/2.0") - 1)
- return NF_DROP;
+ return NF_ACCEPT;

addr_map_init(ct, &map);

iptables devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.