Fix switch crashing due to wrong checksum implementation.
Reworked the recalculation of ip checksum after a set_field action.