Home
last modified time | relevance | path

Searched refs:icmp (Results 1 – 12 of 12) sorted by relevance

/xnu-8020.101.4/tests/
H A Dicmp_fragmented_payload.c101 struct icmp *icmp_hdr;
232 icmp4_pcb_set_payload(icmp4_pcb_t pcb, struct icmp *icmp_in, struct ip *ip_in, struct tcphdr *tcp_i… in icmp4_pcb_set_payload()
261 pcb->icmp_hdr = (struct icmp*)pcb->buf; in icmp4_pcb_set_payload()
268 pcb->icmp_hdr->icmp_cksum = checksum_buffer((uint16_t*)pcb->icmp_hdr, sizeof(struct icmp)); in icmp4_pcb_set_payload()
333 struct icmp icmp_payload = {
/xnu-8020.101.4/bsd/netinet/
H A Dip_icmp.c202 struct icmp *icp = NULL; in icmp_error()
256 !ICMP_INFOTYPE(((struct icmp *)(void *)((caddr_t)oip + oiphlen))-> in icmp_error()
365 icp = mtod(m, struct icmp *); in icmp_error()
428 struct icmp *icp; in icmp_input()
471 icp = mtod(m, struct icmp *); in icmp_input()
579 icp = (struct icmp *)(void *)(mtod(m, uint8_t *) + hlen); in icmp_input()
608 .ipc_off = hlen + offsetof(struct icmp, icmp_ip) + (IP_VHL_HL(icp->icmp_ip.ip_vhl) << 2) in icmp_input()
991 struct icmp *icp; in icmp_send()
1009 icp = mtod(m, struct icmp *); in icmp_send()
1293 struct icmp *icp; in icmp_dgram_send()
[all …]
H A Dip_icmp.h89 struct icmp { struct
H A Dip_compat.h583 typedef struct icmp {
706 typedef struct icmp icmphdr_t;
H A Din_proto.c348 SYSCTL_NODE(_net_inet, IPPROTO_ICMP, icmp,
H A Dtcp_subr.c2289 struct icmp *icp = NULL; in tcp_handle_msgsize()
2291 icp = (struct icmp *)(void *) in tcp_handle_msgsize()
2292 ((caddr_t)ip - offsetof(struct icmp, icmp_ip)); in tcp_handle_msgsize()
2389 struct icmp *icp; in tcp_ctlinput()
H A Dudp_usrreq.c885 struct icmp *icp = NULL; in udp_ctlinput()
/xnu-8020.101.4/bsd/man/man4/
H A DMakefile18 icmp.4 \
/xnu-8020.101.4/bsd/net/
H A Dnat464_utils.c258 struct icmp *icmp4; in nat464_translate_icmp()
925 struct icmp *icmph = NULL; in nat464_translate_proto()
929 icmph = (struct icmp*) pbuf_contig_segment(pbuf, hlen, in nat464_translate_proto()
996 struct icmp *icmph = NULL; in nat464_translate_proto()
1011 icmph = (struct icmp *)(uintptr_t)icmp6h; in nat464_translate_proto()
H A Dpf.c4492 struct icmp *icmp4; in pf_translate_icmp_af()
4726 struct icmp *icmp; in pf_nat64_ipv6() local
4729 icmp = (struct icmp *)pbuf_contig_segment(pbuf, hlen, in pf_nat64_ipv6()
4731 if (icmp == NULL) { in pf_nat64_ipv6()
4735 icmp->icmp_cksum = 0; in pf_nat64_ipv6()
4736 icmp->icmp_cksum = pbuf_inet_cksum(pbuf, 0, hlen, in pf_nat64_ipv6()
4867 sxport.port = dxport.port = pd->hdr.icmp->icmp_id; in pf_test_rule()
4869 icmptype = pd->hdr.icmp->icmp_type; in pf_test_rule()
4870 icmpcode = pd->hdr.icmp->icmp_code; in pf_test_rule()
5004 pd->hdr.icmp->icmp_cksum = pf_cksum_fixup( in pf_test_rule()
[all …]
H A Dpfvar.h1418 struct icmp *icmp; member
/xnu-8020.101.4/bsd/sys/
H A Dprotosw.h136 struct icmp *ipc_icmp; /* icmp header of target packet */