Lines Matching refs:len
35 ICMPChecksum(uint16_t *icmph, int len) in ICMPChecksum() argument
37 assert(len >= 0); in ICMPChecksum()
43 while (len > 1) { in ICMPChecksum()
45 len -= 2; in ICMPChecksum()
48 if (len == 1) { in ICMPChecksum()
63 uint8_t *icmpd, uint16_t len) in ICMPOutput() argument
69 uint32_t pktlen = sizeof(struct iphdr) + sizeof(struct icmphdr) + len; in ICMPOutput()
128 if(len > 0) in ICMPOutput()
129 memcpy((void *) (icmph + 1), icmpd, len); in ICMPOutput()
133 ICMPChecksum((uint16_t *)icmph, sizeof(struct icmphdr) + len); in ICMPOutput()
144 uint8_t *icmpd, uint16_t len) in RequestICMP() argument
148 icmpd, len); in RequestICMP()