Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Ic9b44a336f314bae369900e383ff5f3003f6c114 Closes-Bug: #1658576
- Loading branch information