projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d41a95e
)
[NET]: Don't send ICMP_FRAG_NEEDED for GSO packets
author
Rusty Russell
<
[email protected]
>
Fri, 28 Mar 2008 23:23:19 +0000
(16:23 -0700)
committer
David S. Miller
<
[email protected]
>
Fri, 28 Mar 2008 23:23:19 +0000
(16:23 -0700)
Commit
9af3912ec9e30509b76cb376abb65a4d8af27df3
("[NET] Move DF check
to ip_forward") added a new check to send ICMP fragmentation needed
for large packets.
Unlike the check in ip_finish_output(), it doesn't check for GSO.
Signed-off-by: Rusty Russell <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/ip_forward.c
patch
|
blob
|
history
diff --git
a/net/ipv4/ip_forward.c
b/net/ipv4/ip_forward.c
index 0b3b328d82db608519ce2fbb57050b1f944da959..a4506c8cfef0a9b7788909375f31effa8a505c89 100644
(file)
--- a/
net/ipv4/ip_forward.c
+++ b/
net/ipv4/ip_forward.c
@@
-85,7
+85,7
@@
int ip_forward(struct sk_buff *skb)
if (opt->is_strictroute && rt->rt_dst != rt->rt_gateway)
goto sr_failed;
- if (unlikely(skb->len > dst_mtu(&rt->u.dst) &&
+ if (unlikely(skb->len > dst_mtu(&rt->u.dst) &&
!skb_is_gso(skb) &&
(ip_hdr(skb)->frag_off & htons(IP_DF))) && !skb->local_df) {
IP_INC_STATS(IPSTATS_MIB_FRAGFAILS);
icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED,