IP checksums are calculated wrong on 64 bit because too large types are used. This patch fixes them and a couple of unrelated snprintf-sizeof-warnings in the same file. I still get invalid TCP checksums, but couldn't locate the problem yet.