commit 4e60e239186aff64bb6285ead622275d7fc37160
Author: Anand H. Krishnan <email address hidden>
Date: Mon Jan 23 10:15:39 2017 +0530
Calculate checksum only for valid IP length
__skb_checksum_complete calculates checksum for the whole packet,
including the ethernet padding if any. This will result in wrong
checksum verification at the receiving end and thus a wrong packet
drop.
Use __skb_checksum_complete_head instead and pass the length
calculated from IP header as the size over which checksum has to
be calculated.
Reviewed: https:/ /review. opencontrail. org/28111 github. org/Juniper/ contrail- vrouter/ commit/ 4e60e239186aff6 4bb6285ead62227 5d7fc37160
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R3.2
commit 4e60e239186aff6 4bb6285ead62227 5d7fc37160
Author: Anand H. Krishnan <email address hidden>
Date: Mon Jan 23 10:15:39 2017 +0530
Calculate checksum only for valid IP length
__skb_checksum_ complete calculates checksum for the whole packet,
including the ethernet padding if any. This will result in wrong
checksum verification at the receiving end and thus a wrong packet
drop.
Use __skb_checksum_ complete_ head instead and pass the length
calculated from IP header as the size over which checksum has to
be calculated.
Change-Id: I48efbb66bc171c 590784d6f1931be 9abd81198ae
Closes-Bug: #1658576