Searched refs:icmpheader (Results 1 – 1 of 1) sorted by relevance
1455 struct icmp *const icmpheader = (struct icmp *) outp; in icmp_prep() local1457 icmpheader->icmp_type = ICMP_ECHO; in icmp_prep()1458 icmpheader->icmp_id = htons(ident); in icmp_prep()1459 icmpheader->icmp_seq = htons(outdata->seq); in icmp_prep()1460 icmpheader->icmp_cksum = 0; in icmp_prep()1461 icmpheader->icmp_cksum = in_cksum((u_short *)icmpheader, protlen); in icmp_prep()1462 if (icmpheader->icmp_cksum == 0) in icmp_prep()1463 icmpheader->icmp_cksum = 0xffff; in icmp_prep()1469 struct icmp *const icmpheader = (struct icmp *) data; in icmp_check() local1471 return (icmpheader->icmp_id == htons(ident) in icmp_check()[all …]