Lines Matching refs:checksum
71 unsigned short checksum(void *netPacket, int len);
409 * Function: checksum - standard 1s complement checksum
412 unsigned short checksum(void *netPacket, int len)
471 printf("ICMP: type[%d/%d] checksum[%d] id[%d] seq[%d]\n\n",
472 icmpPtr->type, icmpPtr->code, ntohs(icmpPtr->checksum),
536 rawPacket.hdr.checksum =
537 checksum(&rawPacket, sizeof(rawPacket));
609 rawTracePacket.hdr.checksum =
610 checksum(&rawTracePacket, sizeof(rawTracePacket));