Home
last modified time | relevance | path

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

12

/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64_translate.c797 struct icmp *icmp; in nat64_icmp_reflect() local
861 icmp->icmp_type = type; in nat64_icmp_reflect()
862 icmp->icmp_code = code; in nat64_icmp_reflect()
863 icmp->icmp_cksum = 0; in nat64_icmp_reflect()
864 icmp->icmp_pmvoid = 0; in nat64_icmp_reflect()
907 struct icmp *icmp; in nat64_icmp_translate() local
963 icmp->icmp_type, icmp->icmp_code); in nat64_icmp_translate()
1010 icmp->icmp_code, icmp->icmp_pptr); in nat64_icmp_translate()
1017 icmp->icmp_code, icmp->icmp_pptr); in nat64_icmp_translate()
1023 icmp->icmp_type, icmp->icmp_code); in nat64_icmp_translate()
[all …]
H A Dnat64lsn.c350 link->alias->icmp, &link->alias->icmp_pg, in nat64lsn_get_state6to4()
418 struct icmp *icmp; in inspect_icmp_mbuf() local
431 icmp = L3HDR(ip, struct icmp *); in inspect_icmp_mbuf()
432 switch (icmp->icmp_type) { in inspect_icmp_mbuf()
436 *port = ntohs(icmp->icmp_id); in inspect_icmp_mbuf()
474 icmp = mtodo(*mp, off); in inspect_icmp_mbuf()
475 if (icmp->icmp_type != ICMP_ECHO) in inspect_icmp_mbuf()
477 *port = ntohs(icmp->icmp_id); in inspect_icmp_mbuf()
530 pg = alias->icmp[chunk_idx]->pgptr[pg_idx]; in nat64lsn_get_state4to6()
854 firstpg = alias->icmp[0]->pgptr[0]; in nat64lsn_expire_portgroups()
[all …]
H A Dnat64lsn.h144 struct nat64lsn_pgchunk *icmp[32]; member
H A Dnat64lsn_control.c655 return (alias->icmp[pg_idx / 32]->pgptr[pg_idx % 32]); in nat64lsn_get_pg_byidx()
/f-stack/freebsd/contrib/ipfilter/netinet/
H A Dip_fil_freebsd.c515 struct icmp *icmp; local
629 icmp = (struct icmp *)((char *)ip + hlen);
630 ip2 = (ip_t *)&icmp->icmp_ip;
632 icmp->icmp_type = type;
633 icmp->icmp_code = fin->fin_icode;
634 icmp->icmp_cksum = 0;
638 icmp->icmp_nextmtu = htons(fin->fin_mtu);
641 icmp->icmp_nextmtu = htons(GETIFMTU_4(ifp));
662 (char *)&icmp->icmp_ip + ohlen, xtra);
675 icmp->icmp_cksum = ipf_cksum((u_short *)icmp,
[all …]
H A Dip_log.c389 struct icmp *icmp; local
391 icmp = (struct icmp *)fin->fin_dp;
398 switch (icmp->icmp_type)
405 hlen += MIN(sizeof(struct icmp) + 8,
409 hlen += MIN(sizeof(struct icmp),
416 struct icmp6_hdr *icmp; local
418 icmp = (struct icmp6_hdr *)fin->fin_dp;
425 if (icmp->icmp6_type < 128) {
H A Dip_nat.c3626 icmp = fin->fin_dp;
3778 icmphdr_t *icmp; local
3803 icmp = fin->fin_dp;
4897 icmp = fin->fin_dp;
5075 icmphdr_t *icmp; local
5082 icmp = NULL;
5355 icmphdr_t *icmp; local
5371 icmp = NULL;
5573 icmphdr_t *icmp; local
5803 icmphdr_t *icmp; local
[all …]
H A Dfil.c1203 int minicmpsz = sizeof(struct icmp);
1204 icmphdr_t *icmp; local
1219 icmp = fin->fin_dp;
1221 fin->fin_data[0] = *(u_short *)icmp;
1222 fin->fin_data[1] = icmp->icmp_id;
1224 switch (icmp->icmp_type)
4381 ipf_matchicmpqueryreply(v, ic, icmp, rev) in ipf_matchicmpqueryreply() argument
4384 icmphdr_t *icmp;
4398 if (icmp->icmp_type != ICMP_ECHOREPLY)
4400 if (icmp->icmp_id == ic->ici_id)
[all …]
H A Dip_compat.h416 #define MAX_IPV4HDR ((0xf << 2) + sizeof(struct icmp) + sizeof(ip_t) + 8)
671 typedef struct icmp icmphdr_t;
H A Dip_state.c1381 struct icmp *ic;
2683 struct icmp *ic;
2685 icmphdr_t *icmp; local
2827 icmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2));
2828 hv += icmp->icmp_id;
3040 struct icmp *ic;
3047 ic = (struct icmp *)tcp;
/f-stack/freebsd/netinet/libalias/
H A Dalias.c298 struct icmp *ic; in IcmpAliasIn1()
300 ic = (struct icmp *)ip_next(pip); in IcmpAliasIn1()
343 struct icmp *ic, *ic2; in IcmpAliasIn2()
348 ic = (struct icmp *)ip_next(pip); in IcmpAliasIn2()
353 ic2 = (struct icmp *)ip_next(ip); in IcmpAliasIn2()
437 struct icmp *ic; in IcmpAliasIn()
451 ic = (struct icmp *)ip_next(pip); in IcmpAliasIn()
486 struct icmp *ic; in IcmpAliasOut1()
530 struct icmp *ic, *ic2; in IcmpAliasOut2()
626 struct icmp *ic; in IcmpAliasOut()
[all …]
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_log.c298 struct icmphdr *icmp; in ipfw_log() local
359 icmp = L3HDR(struct icmphdr, ip); in ipfw_log()
363 icmp->icmp_type, icmp->icmp_code); in ipfw_log()
H A Dip_fw2.c260 icmptype_match(struct icmphdr *icmp, ipfw_insn_u32 *cmd) in icmptype_match() argument
262 int type = icmp->icmp_type; in icmptype_match()
271 is_icmp_query(struct icmphdr *icmp) in is_icmp_query() argument
273 int type = icmp->icmp_type; in is_icmp_query()
/f-stack/freebsd/netinet/
H A Dip_icmp.c207 struct icmp *icp; in icmp_error()
242 !ICMP_INFOTYPE(((struct icmp *)((caddr_t)oip + in icmp_error()
340 icp = mtod(m, struct icmp *); in icmp_error()
405 struct icmp *icp; in icmp_input()
446 icp = mtod(m, struct icmp *); in icmp_input()
560 icp = (struct icmp *)(ip + 1); in icmp_input()
996 struct icmp *icp; in icmp_send()
1001 icp = mtod(m, struct icmp *); in icmp_send()
H A Dip_icmp.h65 struct icmp { struct
H A Din_proto.c317 SYSCTL_NODE(_net_inet, IPPROTO_ICMP, icmp, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
H A Dsctputil.c7162 struct icmp *icmp; in sctp_recv_icmp_tunneled_packet() local
7172 icmp = (struct icmp *)((caddr_t)inner_ip - in sctp_recv_icmp_tunneled_packet()
7173 (sizeof(struct icmp) - sizeof(struct ip))); in sctp_recv_icmp_tunneled_packet()
7174 outer_ip = (struct ip *)((caddr_t)icmp - sizeof(struct ip)); in sctp_recv_icmp_tunneled_packet()
7242 type = icmp->icmp_type; in sctp_recv_icmp_tunneled_packet()
7243 code = icmp->icmp_code; in sctp_recv_icmp_tunneled_packet()
7250 (uint32_t)ntohs(icmp->icmp_nextmtu)); in sctp_recv_icmp_tunneled_packet()
H A Dsctp_usrreq.c250 struct icmp *icmp; in sctp_ctlinput() local
268 icmp = (struct icmp *)((caddr_t)inner_ip - in sctp_ctlinput()
269 (sizeof(struct icmp) - sizeof(struct ip))); in sctp_ctlinput()
270 outer_ip = (struct ip *)((caddr_t)icmp - sizeof(struct ip)); in sctp_ctlinput()
329 icmp->icmp_type, in sctp_ctlinput()
330 icmp->icmp_code, in sctp_ctlinput()
332 (uint32_t)ntohs(icmp->icmp_nextmtu)); in sctp_ctlinput()
H A Dtcp_subr.c2465 struct icmp *icp; in tcp_ctlinput()
2496 icp = (struct icmp *)((caddr_t)ip - offsetof(struct icmp, icmp_ip)); in tcp_ctlinput()
/f-stack/tools/compat/include/netinet/
H A Dip_icmp.h65 struct icmp { struct
/f-stack/freebsd/netpfil/pf/
H A Dpf.c3376 hdrlen = sizeof(*pd->hdr.icmp); in pf_test_rule()
4706 icmpid = pd->hdr.icmp->icmp_id; in pf_test_state_icmp()
4774 pd->hdr.icmp->icmp_id) { in pf_test_state_icmp()
4775 pd->hdr.icmp->icmp_cksum = in pf_test_state_icmp()
4779 pd->hdr.icmp->icmp_id = in pf_test_state_icmp()
4784 (caddr_t )pd->hdr.icmp); in pf_test_state_icmp()
5045 (caddr_t )pd->hdr.icmp); in pf_test_state_icmp()
5135 struct icmp iih; in pf_test_state_icmp()
5272 (caddr_t)pd->hdr.icmp); in pf_test_state_icmp()
6049 struct icmp ih; in pf_test()
[all …]
/f-stack/dpdk/drivers/net/enic/base/
H A Dvnic_flowman.h168 } __rte_packed icmp; member
/f-stack/tools/compat/include/net/
H A Dpfvar.h757 struct icmp *icmp; member
/f-stack/freebsd/net/
H A Dpfvar.h906 struct icmp *icmp; member
/f-stack/dpdk/drivers/net/softnic/
H A Drte_eth_softnic_flow.c134 struct rte_flow_item_icmp icmp; member

12