Searched refs:icmph (Results 1 – 2 of 2) sorted by relevance
568 const struct icmp *icmph; in PacketCheck() local623 len = datalen - sizeof *icmph; in PacketCheck()624 icmph = (const struct icmp *)payload; in PacketCheck()626 "ICMP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), icmph->icmp_type); in PacketCheck()
2184 struct icmp *icmph; in xnb_add_mbuf_cksum_icmp() local2197 icmph = (struct icmp*)(iph + 1); in xnb_add_mbuf_cksum_icmp()2198 icmph->icmp_type = ICMP_ECHO; in xnb_add_mbuf_cksum_icmp()2199 icmph->icmp_code = 0; in xnb_add_mbuf_cksum_icmp()2200 icmph->icmp_cksum = htons(ICMP_CSUM); in xnb_add_mbuf_cksum_icmp()2201 icmph->icmp_id = htons(31492); in xnb_add_mbuf_cksum_icmp()2202 icmph->icmp_seq = htons(0); in xnb_add_mbuf_cksum_icmp()2207 tv_field = (uint32_t*)(&(icmph->icmp_hun)); in xnb_add_mbuf_cksum_icmp()2233 XNB_ASSERT(bcmp(icmph, pkt_orig, icmp_len)); in xnb_add_mbuf_cksum_icmp()