]> git.hungrycats.org Git - linux/commitdiff
Never set IP_DF for ICMP packets.
authorDavid S. Miller <davem@nuts.ninka.net>
Sun, 10 Mar 2002 21:59:57 +0000 (13:59 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Sun, 10 Mar 2002 21:59:57 +0000 (13:59 -0800)
net/ipv4/netfilter/ipt_REJECT.c

index 04caebcdb4b0a22a2113cb4d126b39505668eb65..eaec9408ac1313bccc34874bd5de54b157a42d93 100644 (file)
@@ -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);