datapath: Calculate proper checksum for set_tp_src/dst action
authorJustin Pettit <jpettit@nicira.com>
Tue, 17 Nov 2009 01:51:31 +0000 (17:51 -0800)
committerJustin Pettit <jpettit@nicira.com>
Tue, 17 Nov 2009 02:11:40 +0000 (18:11 -0800)
commit985224ac0c6a2eeebf71c58b12893eafe2386a3d
tree1e3cec54a6fdb994c95db5f15811135ae658e0ae
parentfb344b867b96a6d6b9ec32e277cae6db68f2f236
datapath: Calculate proper checksum for set_tp_src/dst action

When the set_tp_src or set_tp_dst action is used, the calculation for
where the checksum is located was wrong.  This caused the checksum to
not be updated and packet corruption in the bad offset.
datapath/actions.c