ChangeSet 1.2199.14.34, 2005/03/23 12:17:47-08:00, [EMAIL PROTECTED]

        [IPV4]: Clear DF bit in ip_fragment fast path
        
        It is possible for ip_fragment() to send out head fragments with
        both DF and MF set for packets with local_df set to true.  This is
        because the fast path tries to only modify the MF bit of the head
        fragment.
        
        Since the offset is always zero for the head fragment, and we know
        that DF should be cleared in case of local_df, we can change |= to
        a straight assignment.
        
        Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
        Signed-off-by: David S. Miller <[EMAIL PROTECTED]>



 ip_output.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
--- a/net/ipv4/ip_output.c      2005-03-26 17:24:54 -08:00
+++ b/net/ipv4/ip_output.c      2005-03-26 17:24:54 -08:00
@@ -498,7 +498,7 @@
                skb->data_len = first_len - skb_headlen(skb);
                skb->len = first_len;
                iph->tot_len = htons(first_len);
-               iph->frag_off |= htons(IP_MF);
+               iph->frag_off = htons(IP_MF);
                ip_send_check(iph);
 
                for (;;) {
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to