| /xnu-11215/bsd/netinet6/ |
| H A D | udp6_output.c | 158 struct in6_addr *__single laddr, *__single faddr; in udp6_output() local 298 faddr = &sin6->sin6_addr; in udp6_output() 301 if (IN6_IS_ADDR_V4MAPPED(faddr)) { in udp6_output() 330 if (!IN6_IS_ADDR_V4MAPPED(faddr)) { in udp6_output() 372 faddr = &in6p->in6p_faddr; in udp6_output() 378 faddr = &SIN6(cfil_faddr)->sin6_addr; in udp6_output() 386 if (IN6_IS_ADDR_V4MAPPED(faddr)) { in udp6_output() 462 ip6->ip6_dst = *faddr; in udp6_output() 464 udp6->uh_sum = in6_pseudo(laddr, faddr, in udp6_output() 502 to.sin6_addr = *faddr; in udp6_output() [all …]
|
| H A D | in6_pcb.c | 1372 in6_pcblookup_hash_exists(struct inpcbinfo *pcbinfo, struct in6_addr *faddr, in in6_pcblookup_hash_exists() argument 1389 head = &pcbinfo->ipi_hashbase[INP_PCBHASH(faddr->s6_addr32[3] /* XXX */, in in6_pcblookup_hash_exists() 1406 if (((in6_are_addr_equal_scoped(&inp->in6p_faddr, faddr, inp->inp_fifscope, fifscope) && in in6_pcblookup_hash_exists() 1409 IN6_ARE_ADDR_EQUAL(&inp->in6p_faddr, faddr) && in in6_pcblookup_hash_exists() 1489 in6_pcblookup_hash(struct inpcbinfo *pcbinfo, struct in6_addr *faddr, in in6_pcblookup_hash() argument 1502 head = &pcbinfo->ipi_hashbase[INP_PCBHASH(faddr->s6_addr32[3] /* XXX */, in in6_pcblookup_hash() 1519 if (in6_are_addr_equal_scoped(&inp->in6p_faddr, faddr, inp->inp_fifscope, fifscope) && in in6_pcblookup_hash()
|
| /xnu-11215/bsd/netinet/ |
| H A D | tcp_cache.c | 131 in_4_6_addr faddr; member 298 memcpy(&key->tck_dst.addr6, &tcks->faddr.addr6, in tcp_cache_hash() 302 memcpy(&key->tck_dst.addr, &tcks->faddr.addr, in tcp_cache_hash() 414 memcpy(&tcks->faddr.addr6, &inp->in6p_faddr, sizeof(struct in6_addr)); in tcp_cache_key_src_create() 418 memcpy(&tcks->faddr.addr, &inp->inp_faddr, sizeof(struct in_addr)); in tcp_cache_key_src_create() 431 memcpy(&tcks->faddr.addr, &SIN(dst)->sin_addr, sizeof(struct in_addr)); in mptcp_version_cache_key_src_init() 434 memcpy(&tcks->faddr.addr6, &SIN6(dst)->sin6_addr, sizeof(struct in6_addr)); in mptcp_version_cache_key_src_init() 1451 memcpy(&tcks.faddr.addr6, &remote_address->sin6.sin6_addr, sizeof(struct in6_addr)); in tcp_heuristic_do_tfo_with_address() 1455 memcpy(&tcks.faddr.addr, &remote_address->sin.sin_addr, sizeof(struct in_addr)); in tcp_heuristic_do_tfo_with_address() 1483 memcpy(&tcks.faddr.addr6, &remote_address->sin6.sin6_addr, sizeof(struct in6_addr)); in tcp_heuristics_tfo_update() [all …]
|
| H A D | udp_usrreq.c | 925 struct in_addr faddr; in udp_ctlinput() local 942 faddr = SIN(sa)->sin_addr; in udp_ctlinput() 1750 faddr = inp->inp_faddr; in udp_output() 1756 faddr = SIN(cfil_faddr)->sin_addr; in udp_output() 1765 if (faddr.s_addr != INADDR_ANY) { in udp_output() 1798 faddr = inp->inp_faddr; in udp_output() 1835 faddr = sin->sin_addr; in udp_output() 1839 if (faddr.s_addr == INADDR_ANY) { in udp_output() 1873 ui->ui_dst = faddr; in udp_output() 1953 to.sin_addr = faddr; in udp_output() [all …]
|
| H A D | in_pcb.h | 676 #define INP_PCBHASH(faddr, lport, fport, mask) \ argument 677 (((faddr) ^ ((faddr) >> 16) ^ ntohs((lport) ^ (fport))) & (mask))
|
| H A D | in_pcb.c | 2265 in_pcbnotifyall(struct inpcbinfo *pcbinfo, struct in_addr faddr, in in_pcbnotifyall() argument 2276 if (inp->inp_faddr.s_addr != faddr.s_addr || in in_pcbnotifyall() 2470 in_pcblookup_hash_exists(struct inpcbinfo *pcbinfo, struct in_addr faddr, in in_pcblookup_hash_exists() argument 2493 head = &pcbinfo->ipi_hashbase[INP_PCBHASH(faddr.s_addr, lport, fport, in in_pcblookup_hash_exists() 2509 if (inp->inp_faddr.s_addr == faddr.s_addr && in in_pcblookup_hash_exists() 2600 in_pcblookup_hash(struct inpcbinfo *pcbinfo, struct in_addr faddr, in in_pcblookup_hash() argument 2619 head = &pcbinfo->ipi_hashbase[INP_PCBHASH(faddr.s_addr, lport, fport, in in_pcblookup_hash() 2635 if (inp->inp_faddr.s_addr == faddr.s_addr && in in_pcblookup_hash()
|
| H A D | tcp_subr.c | 2428 struct in_addr faddr; in tcp_ctlinput() local 2452 faddr = SIN(sa)->sin_addr; in tcp_ctlinput() 2453 if (sa->sa_family != AF_INET || faddr.s_addr == INADDR_ANY) { in tcp_ctlinput() 2490 in_pcbnotifyall(&tcbinfo, faddr, inetctlerrmap[cmd], notify); in tcp_ctlinput() 2508 inp = in_pcblookup_hash(&tcbinfo, faddr, th->th_dport, in tcp_ctlinput()
|
| /xnu-11215/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_var.h | 686 union sockaddr_in_4_6 *faddr, uint8_t *protocol) in flow_key_unpack() argument 693 faddr->sa.sa_family = AF_INET; in flow_key_unpack() 694 faddr->sin.sin_addr = key->fk_dst4; in flow_key_unpack() 695 faddr->sin.sin_port = key->fk_dport; in flow_key_unpack() 700 faddr->sa.sa_family = AF_INET6; in flow_key_unpack() 701 faddr->sin6.sin6_addr = key->fk_dst6; in flow_key_unpack() 702 faddr->sin6.sin6_port = key->fk_dport; in flow_key_unpack()
|
| /xnu-11215/bsd/net/ |
| H A D | pktap.c | 981 struct in_addr faddr, laddr; in pktap_fill_proc_info() local 995 faddr = ip.ip_src; in pktap_fill_proc_info() 1029 inp = in_pcblookup_hash(pcbinfo, faddr, fport, in pktap_fill_proc_info() 1046 struct in6_addr *faddr; in pktap_fill_proc_info() local 1057 faddr = &ip6.ip6_src; in pktap_fill_proc_info() 1095 inp = in6_pcblookup_hash(pcbinfo, faddr, fport, ip6_input_getdstifscope(m), in pktap_fill_proc_info()
|
| H A D | content_filter.c | 2262 &laddr, &faddr, &lport, &fport); in cfil_ctl_getopt() 2270 &laddr, &faddr, &lport, &fport); in cfil_ctl_getopt() 3115 struct in_addr laddr = {0}, faddr = {0}; in cfil_fill_event_msg_addresses() local 3122 fill_ip_sockaddr_4_6(sin_dst, faddr, fport); in cfil_fill_event_msg_addresses() 3124 fill_ip_sockaddr_4_6(sin_src, faddr, fport); in cfil_fill_event_msg_addresses() 3860 *faddr = &entry->soflow_faddr.addr6; in cfil_get_flow_address_v6() 3865 *faddr = &inp->in6p_faddr; in cfil_get_flow_address_v6() 3883 *faddr = inp->inp_faddr; in cfil_get_flow_address() 7203 struct sockaddr **faddr, int *inp_flags) in cfil_dgram_get_socket_state() argument 7217 if (faddr) { in cfil_dgram_get_socket_state() [all …]
|
| H A D | content_filter.h | 573 uint32_t *options, struct sockaddr **faddr, int *inp_flags);
|
| /xnu-11215/bsd/kern/ |
| H A D | socket_flows.c | 130 #define SOFLOW_HASH(laddr, faddr, lport, fport) ((faddr) ^ ((laddr) >> 16) ^ (fport) ^ (lport)) argument
|