ChangeSet 1.2009.16.3, 2005/03/14 21:25:12-08:00, [EMAIL PROTECTED]

        [IPSEC]: Handle local_df in IPv4
        
        When cleaning up the remaining users of dst_pmtu I noticed that
        local_df wasn't being treated correctly in IPsec.  In fact, if
        you socket's dst went over IPsec, local_df is essentailly ignored.
        
        This patch fixes that.
        
        Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
        Signed-off-by: David S. Miller <[EMAIL PROTECTED]>



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


diff -Nru a/net/ipv4/xfrm4_output.c b/net/ipv4/xfrm4_output.c
--- a/net/ipv4/xfrm4_output.c   2005-03-15 00:07:37 -08:00
+++ b/net/ipv4/xfrm4_output.c   2005-03-15 00:07:37 -08:00
@@ -78,7 +78,7 @@
 
        IPCB(skb)->flags |= IPSKB_XFRM_TUNNEL_SIZE;
        
-       if (!(iph->frag_off & htons(IP_DF)))
+       if (!(iph->frag_off & htons(IP_DF)) || skb->local_df)
                goto out;
 
        dst = skb->dst;
-
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