Home
last modified time | relevance | path

Searched refs:addr4 (Results 1 – 25 of 96) sorted by relevance

1234

/linux/tools/testing/selftests/bpf/prog_tests/
A Dsk_assign.c206 struct sockaddr_in *addr4; in prepare_addr() local
211 addr4 = (struct sockaddr_in *)addr; in prepare_addr()
212 memset(addr4, 0, sizeof(*addr4)); in prepare_addr()
213 addr4->sin_family = family; in prepare_addr()
214 addr4->sin_port = htons(port); in prepare_addr()
216 addr4->sin_addr.s_addr = htonl(TEST_DADDR); in prepare_addr()
218 addr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in prepare_addr()
247 .addr = (FAMILY == AF_INET) ? (struct sockaddr *)&addr4 \
249 .len = (FAMILY == AF_INET) ? sizeof(addr4) : sizeof(addr6), \
256 struct sockaddr_in addr4; in test_sk_assign() local
A Dcls_redirect.c142 struct sockaddr_in *addr4; in prepare_addr() local
147 addr4 = (struct sockaddr_in *)addr; in prepare_addr()
148 memset(addr4, 0, sizeof(*addr4)); in prepare_addr()
149 addr4->sin_family = family; in prepare_addr()
150 addr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in prepare_addr()
151 return sizeof(*addr4); in prepare_addr()
/linux/tools/testing/selftests/bpf/
A Dtest_tcp_check_syncookie_user.c204 struct sockaddr_in addr4; in main() local
223 memset(&addr4, 0, sizeof(addr4)); in main()
224 addr4.sin_family = AF_INET; in main()
225 addr4.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in main()
226 addr4.sin_port = 0; in main()
233 server = start_server((const struct sockaddr *)&addr4, sizeof(addr4)); in main()
A Dtest_sock.c359 struct sockaddr_in *addr4; in bind_sock() local
372 addr4 = (struct sockaddr_in *)&addr; in bind_sock()
373 addr4->sin_family = domain; in bind_sock()
374 addr4->sin_port = htons(port); in bind_sock()
375 if (inet_pton(domain, ip, (void *)&addr4->sin_addr) != 1) in bind_sock()
/linux/tools/testing/selftests/net/
A Dtcp_inq.c39 struct sockaddr_in *addr4 = (void *) sockaddr; in setup_loopback_addr() local
43 memset(addr4, 0, sizeof(*addr4)); in setup_loopback_addr()
44 addr4->sin_family = AF_INET; in setup_loopback_addr()
45 addr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in setup_loopback_addr()
46 addr4->sin_port = htons(port); in setup_loopback_addr()
A Dreuseport_addr_any.c37 struct sockaddr_in addr4 = {0}; in build_rcv_fd() local
46 addr4.sin_family = family; in build_rcv_fd()
48 addr4.sin_addr.s_addr = htonl(INADDR_ANY); in build_rcv_fd()
49 else if (!inet_pton(family, addr_str, &addr4.sin_addr.s_addr)) in build_rcv_fd()
51 addr4.sin_port = htons(PORT); in build_rcv_fd()
52 sz = sizeof(addr4); in build_rcv_fd()
53 addr = (struct sockaddr *)&addr4; in build_rcv_fd()
A Dreuseport_dualstack.c34 struct sockaddr_in *addr4; in build_rcv_fd() local
40 addr4 = (struct sockaddr_in *)&addr; in build_rcv_fd()
41 addr4->sin_family = AF_INET; in build_rcv_fd()
42 addr4->sin_addr.s_addr = htonl(INADDR_ANY); in build_rcv_fd()
43 addr4->sin_port = htons(PORT); in build_rcv_fd()
A Dtcp_fastopen_backup_key.c93 struct sockaddr_in addr4 = {0}; in build_rcv_fd() local
102 addr4.sin_family = family; in build_rcv_fd()
103 addr4.sin_addr.s_addr = htonl(INADDR_ANY); in build_rcv_fd()
104 addr4.sin_port = htons(PORT); in build_rcv_fd()
105 sz = sizeof(addr4); in build_rcv_fd()
106 addr = (struct sockaddr *)&addr4; in build_rcv_fd()
A Dreuseaddr_conflict.c36 struct sockaddr_in addr4 = { in open_port() local
47 addr = (struct sockaddr*)&addr4; in open_port()
48 addrlen = sizeof(addr4); in open_port()
A Dreuseport_bpf_cpu.c37 struct sockaddr_in *addr4; in build_rcv_group() local
44 addr4 = (struct sockaddr_in *)&addr; in build_rcv_group()
45 addr4->sin_family = AF_INET; in build_rcv_group()
46 addr4->sin_addr.s_addr = htonl(INADDR_ANY); in build_rcv_group()
47 addr4->sin_port = htons(PORT); in build_rcv_group()
A Dreuseport_bpf_numa.c33 struct sockaddr_in *addr4; in build_rcv_group() local
40 addr4 = (struct sockaddr_in *)&addr; in build_rcv_group()
41 addr4->sin_family = AF_INET; in build_rcv_group()
42 addr4->sin_addr.s_addr = htonl(INADDR_ANY); in build_rcv_group()
43 addr4->sin_port = htons(PORT); in build_rcv_group()
A Dtcp_mmap.c285 struct sockaddr_in *addr4 = (void *) sockaddr; in setup_sockaddr() local
289 memset(addr4, 0, sizeof(*addr4)); in setup_sockaddr()
290 addr4->sin_family = AF_INET; in setup_sockaddr()
291 addr4->sin_port = htons(cfg_port); in setup_sockaddr()
293 inet_pton(AF_INET, str_addr, &(addr4->sin_addr)) != 1) in setup_sockaddr()
A Dreuseport_bpf.c48 struct sockaddr_in *addr4; in new_any_sockaddr() local
56 addr4 = (struct sockaddr_in *)addr; in new_any_sockaddr()
57 addr4->sin_family = AF_INET; in new_any_sockaddr()
58 addr4->sin_addr.s_addr = htonl(INADDR_ANY); in new_any_sockaddr()
59 addr4->sin_port = htons(port); in new_any_sockaddr()
76 struct sockaddr_in *addr4; in new_loopback_sockaddr() local
81 addr4 = (struct sockaddr_in *)addr; in new_loopback_sockaddr()
82 addr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in new_loopback_sockaddr()
A Dso_txtime.c366 struct sockaddr_in *addr4 = (void *) sockaddr; in setup_sockaddr() local
370 memset(addr4, 0, sizeof(*addr4)); in setup_sockaddr()
371 addr4->sin_family = AF_INET; in setup_sockaddr()
372 addr4->sin_port = htons(cfg_port); in setup_sockaddr()
374 inet_pton(AF_INET, str_addr, &(addr4->sin_addr)) != 1) in setup_sockaddr()
A Drxtimestamp.c282 struct sockaddr_in addr4; in run_test_case() member
293 addr.addr4.sin_family = AF_INET; in run_test_case()
294 addr.addr4.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in run_test_case()
295 addr.addr4.sin_port = htons(port); in run_test_case()
296 addr_size = sizeof(addr.addr4); in run_test_case()
A Dudpgso_bench_rx.c64 struct sockaddr_in *addr4 = (void *) sockaddr; in setup_sockaddr() local
68 addr4->sin_family = AF_INET; in setup_sockaddr()
69 addr4->sin_port = htons(cfg_port); in setup_sockaddr()
70 if (inet_pton(AF_INET, str_addr, &(addr4->sin_addr)) != 1) in setup_sockaddr()
A Dmsg_zerocopy.c298 struct sockaddr_in *addr4 = (void *) sockaddr; in setup_sockaddr() local
302 memset(addr4, 0, sizeof(*addr4)); in setup_sockaddr()
303 addr4->sin_family = AF_INET; in setup_sockaddr()
304 addr4->sin_port = htons(cfg_port); in setup_sockaddr()
306 inet_pton(AF_INET, str_addr, &(addr4->sin_addr)) != 1) in setup_sockaddr()
/linux/drivers/net/wireguard/
A Dsocket.c25 .daddr = endpoint->addr4.sin_addr.s_addr, in send4()
26 .fl4_dport = endpoint->addr4.sin_port, in send4()
239 endpoint->addr4.sin_family = AF_INET; in wg_socket_endpoint_from_skb()
240 endpoint->addr4.sin_port = udp_hdr(skb)->source; in wg_socket_endpoint_from_skb()
241 endpoint->addr4.sin_addr.s_addr = ip_hdr(skb)->saddr; in wg_socket_endpoint_from_skb()
260 a->addr4.sin_port == b->addr4.sin_port && in endpoint_eq()
261 a->addr4.sin_addr.s_addr == b->addr4.sin_addr.s_addr && in endpoint_eq()
284 peer->endpoint.addr4 = endpoint->addr4; in wg_socket_set_peer_endpoint()
/linux/net/netlabel/
A Dnetlabel_unlabeled.c408 const struct in_addr *addr4 = addr; in netlbl_unlhsh_add() local
415 addr4->s_addr, in netlbl_unlhsh_add()
1096 if (addr4) { in netlbl_unlabel_staticlist_gen()
1099 addr_struct.s_addr = addr4->list.addr; in netlbl_unlabel_staticlist_gen()
1106 addr_struct.s_addr = addr4->list.mask; in netlbl_unlabel_staticlist_gen()
1113 secid = addr4->secid; in netlbl_unlabel_staticlist_gen()
1171 struct netlbl_af4list *addr4; in netlbl_unlabel_staticlist() local
1190 netlbl_af4list_foreach_rcu(addr4, in netlbl_unlabel_staticlist()
1257 struct netlbl_af4list *addr4; in netlbl_unlabel_staticlistdef() local
1482 struct netlbl_af4list *addr4; in netlbl_unlabel_getattr() local
[all …]
/linux/net/rds/
A Dbind.c198 __be32 addr4; in rds_bind() local
206 addr4 = sin6->sin6_addr.s6_addr32[3]; in rds_bind()
207 if (addr4 == htonl(INADDR_ANY) || in rds_bind()
208 addr4 == htonl(INADDR_BROADCAST) || in rds_bind()
209 ipv4_is_multicast(addr4)) in rds_bind()
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum2_mr_tcam.c146 (char *) &key->source.addr4, in mlxsw_sp2_mr_tcam_rule_parse4()
147 (char *) &key->source_mask.addr4, 4); in mlxsw_sp2_mr_tcam_rule_parse4()
149 (char *) &key->group.addr4, in mlxsw_sp2_mr_tcam_rule_parse4()
150 (char *) &key->group_mask.addr4, 4); in mlxsw_sp2_mr_tcam_rule_parse4()
A Dspectrum1_mr_tcam.c40 ntohl(key->group.addr4), in mlxsw_sp1_mr_tcam_route_replace()
41 ntohl(key->group_mask.addr4), in mlxsw_sp1_mr_tcam_route_replace()
42 ntohl(key->source.addr4), in mlxsw_sp1_mr_tcam_route_replace()
43 ntohl(key->source_mask.addr4), in mlxsw_sp1_mr_tcam_route_replace()
A Dspectrum_nve.c56 __be32 addr4; member
90 mc_entry->addr4 = addr->addr4; in mlxsw_sp_nve_mc_record_ipv4_entry_add()
106 u32 udip = be32_to_cpu(mc_entry->addr4); in mlxsw_sp_nve_mc_record_ipv4_entry_set()
116 return mc_entry->addr4 == addr->addr4; in mlxsw_sp_nve_mc_record_ipv4_entry_compare()
183 addr->addr4 = cpu_to_be32(uip); in mlxsw_sp_nve_learned_ip_resolve()
/linux/security/selinux/
A Dnetlabel.c278 struct sockaddr_in addr4; in selinux_netlbl_sctp_assoc_request() local
295 addr4.sin_family = AF_INET; in selinux_netlbl_sctp_assoc_request()
296 addr4.sin_addr.s_addr = ip_hdr(skb)->saddr; in selinux_netlbl_sctp_assoc_request()
297 rc = netlbl_conn_setattr(asoc->base.sk, (void *)&addr4, &secattr); in selinux_netlbl_sctp_assoc_request()
/linux/net/core/
A Dutils.c304 struct sockaddr_in *addr4 = (struct sockaddr_in *)addr; in inet4_pton() local
310 if (in4_pton(src, srclen, (u8 *)&addr4->sin_addr.s_addr, in inet4_pton()
314 addr4->sin_family = AF_INET; in inet4_pton()
315 addr4->sin_port = htons(port_num); in inet4_pton()

Completed in 33 milliseconds

1234