[IPv6]: Only modify checksum for UDP
[deliverable/linux.git] / net / ipv6 / raw.c
index 18a90075f942a733b0c7f4f98d2c9dee3be2468a..813fa1d968627deaf5ab5b8500e20fd99e35480e 100644 (file)
@@ -536,7 +536,7 @@ static int rawv6_push_pending_frames(struct sock *sk, struct flowi *fl,
                                   &fl->fl6_dst,
                                   total_len, fl->proto, tmp_csum);
 
-       if (tmp_csum == 0)
+       if (tmp_csum == 0 && fl->proto == IPPROTO_UDP)
                tmp_csum = -1;
 
        csum = tmp_csum;
This page took 0.028782 seconds and 5 git commands to generate.