projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68e1f18
)
[NETFILTER]: ipt_TCPMSS: remove impossible condition
author
Patrick McHardy
<kaber@trash.net>
Wed, 20 Sep 2006 18:58:50 +0000
(11:58 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:19:48 +0000
(15:19 -0700)
Every skb must have a dst_entry at this point.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ipt_TCPMSS.c
patch
|
blob
|
history
diff --git
a/net/ipv4/netfilter/ipt_TCPMSS.c
b/net/ipv4/netfilter/ipt_TCPMSS.c
index bfc8d9c7d020cd8e9ecffb8c307fd6676c29e9cc..b2d3c4f992d195a99a929b0ecb10234711ebaaf1 100644
(file)
--- a/
net/ipv4/netfilter/ipt_TCPMSS.c
+++ b/
net/ipv4/netfilter/ipt_TCPMSS.c
@@
-73,13
+73,6
@@
ipt_tcpmss_target(struct sk_buff **pskb,
}
if (tcpmssinfo->mss == IPT_TCPMSS_CLAMP_PMTU) {
- if (!(*pskb)->dst) {
- if (net_ratelimit())
- printk(KERN_ERR "ipt_tcpmss_target: "
- "no dst?! can't determine path-MTU\n");
- return NF_DROP; /* or IPT_CONTINUE ?? */
- }
-
if (dst_mtu((*pskb)->dst) <= sizeof(struct iphdr) +
sizeof(struct tcphdr)) {
if (net_ratelimit())