Commit c6892f5d authored by David S. Miller's avatar David S. Miller

Never set IP_DF for ICMP packets.

parent 0c2ff483
......@@ -234,11 +234,8 @@ static void send_unreach(struct sk_buff *skb_in, int code)
iph->tos=tos;
iph->tot_len = htons(length);
/* This abbreviates icmp->send->ip_build_xmit->ip_dont_fragment */
if (!ipv4_config.no_pmtu_disc
&& !(rt->u.dst.mxlock&(1<<RTAX_MTU)))
iph->frag_off = htons(IP_DF);
else iph->frag_off = 0;
/* PMTU discovery never applies to ICMP packets. */
iph->frag_off = 0;
iph->ttl = MAXTTL;
ip_select_ident(iph, &rt->u.dst, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment