set and check packet checksums