Fix IPv4 checksum on IPv4 ECN or DSCP set field

This commit updates the IPv4 packet checksum after changing the DSCP
or ECN fields. Furthermore, it add the case of setting IPv6 DSCP and ECN.