Lines Matching defs:icmpheader
1418 struct icmp *const icmpheader = (struct icmp *) outp;
1420 icmpheader->icmp_type = ICMP_ECHO;
1421 icmpheader->icmp_id = htons(ident);
1422 icmpheader->icmp_seq = htons(outdata->seq);
1423 icmpheader->icmp_cksum = 0;
1424 icmpheader->icmp_cksum = in_cksum((u_short *)icmpheader, protlen);
1425 if (icmpheader->icmp_cksum == 0)
1426 icmpheader->icmp_cksum = 0xffff;
1432 struct icmp *const icmpheader = (struct icmp *) data;
1434 return (icmpheader->icmp_id == htons(ident)
1435 && icmpheader->icmp_seq == htons(seq));