projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa584ed
)
[NETFILTER]: nf_nat_sip: don't drop short packets
author
Patrick McHardy
<kaber@trash.net>
Tue, 14 Aug 2007 20:14:58 +0000
(13:14 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 14 Aug 2007 20:14:58 +0000
(13:14 -0700)
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@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/nf_nat_sip.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/netfilter/nf_nat_sip.c
b/net/ipv4/netfilter/nf_nat_sip.c
index a889ec3ec83abb7edb80a0c91241226b7e978dae..e14d41976c279c24f76b90de3a74d5abbefcef24 100644
(file)
--- 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);