Home
last modified time | relevance | path

Searched refs:icmph (Results 1 – 2 of 2) sorted by relevance

/freebsd/usr.sbin/ppp/
H A Dip.c568 const struct icmp *icmph; in PacketCheck() local
623 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()
/freebsd/sys/dev/xen/netback/
H A Dnetback_unit_tests.c2184 struct icmp *icmph; in xnb_add_mbuf_cksum_icmp() local
2197 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()