All pastes #928080 Raw Edit

Zeug

public text v1 · immutable
·published 2008-03-04 19:59 UTC
rendered paste body
	short checksum = 0;
	for(int i = 0; i<(sizeof(IPV4_HDR)+sizeof(TCP_HDR)+payload); i+=2)
		checksum += !(short)buf[i];
	tcphdr->checksum = !checksum;