/openbmc/openbmc/meta-openembedded/meta-webserver/recipes-httpd/monkey/files/ |
H A D | 0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch | 20 struct sockaddr_in *s4 = (struct sockaddr_in *)&addr4; 21 memset(&addr4, 0, sizeof(addr4)); 22 addr4.sin_family = AF_INET; 23 - addr4.sin_port = &s->sin6_port; 24 + addr4.sin_port = s->sin6_port; 25 memcpy(&addr4.sin_addr.s_addr, 27 sizeof(addr4.sin_addr.s_addr));
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_tcp_check_syncookie_user.c | 221 struct sockaddr_in addr4; in main() local 246 memset(&addr4, 0, sizeof(addr4)); in main() 247 addr4.sin_family = AF_INET; in main() 248 addr4.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in main() 249 addr4.sin_port = 0; in main() 250 memcpy(&addr4dual, &addr4, sizeof(addr4dual)); in main() 262 server = start_server((const struct sockaddr *)&addr4, sizeof(addr4), in main() 264 if (server == -1 || !get_port(server, &addr4.sin_port)) in main() 278 (const struct sockaddr *)&addr4, sizeof(addr4))) in main()
|
H A D | test_sock.c | 418 struct sockaddr_in *addr4; in bind_sock() local 431 addr4 = (struct sockaddr_in *)&addr; in bind_sock() 432 addr4->sin_family = domain; in bind_sock() 433 addr4->sin_port = htons(port); in bind_sock() 434 if (inet_pton(domain, ip, (void *)&addr4->sin_addr) != 1) in bind_sock() 462 addr4->sin_port = htons(port_retry); in bind_sock()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | bind_wildcard.c | 29 struct sockaddr_in addr4; in FIXTURE() local 98 self->addr4.sin_family = AF_INET; in FIXTURE_SETUP() 99 self->addr4.sin_port = htons(0); in FIXTURE_SETUP() 100 self->addr4.sin_addr.s_addr = htonl(variant->addr4_const); in FIXTURE_SETUP() 149 (struct sockaddr *)&self->addr4, sizeof(self->addr4), in TEST_F() 157 (struct sockaddr *)&self->addr4, sizeof(self->addr4)); in TEST_F()
|
H A D | tcp_inq.c | 39 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()
|
H A D | reuseport_addr_any.c | 37 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()
|
H A D | reuseport_dualstack.c | 34 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()
|
H A D | reuseaddr_conflict.c | 36 struct sockaddr_in addr4 = { in open_port() local 47 addr = (struct sockaddr*)&addr4; in open_port() 48 addrlen = sizeof(addr4); in open_port()
|
H A D | tcp_fastopen_backup_key.c | 91 struct sockaddr_in addr4 = {0}; in build_rcv_fd() local 100 addr4.sin_family = family; in build_rcv_fd() 101 addr4.sin_addr.s_addr = htonl(INADDR_ANY); in build_rcv_fd() 102 addr4.sin_port = htons(PORT); in build_rcv_fd() 103 sz = sizeof(addr4); in build_rcv_fd() 104 addr = (struct sockaddr *)&addr4; in build_rcv_fd()
|
H A D | reuseport_bpf_cpu.c | 37 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()
|
H A D | reuseport_bpf_numa.c | 33 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()
|
H A D | reuseport_bpf.c | 46 struct sockaddr_in *addr4; in new_any_sockaddr() local 54 addr4 = (struct sockaddr_in *)addr; in new_any_sockaddr() 55 addr4->sin_family = AF_INET; in new_any_sockaddr() 56 addr4->sin_addr.s_addr = htonl(INADDR_ANY); in new_any_sockaddr() 57 addr4->sin_port = htons(port); in new_any_sockaddr() 74 struct sockaddr_in *addr4; in new_loopback_sockaddr() local 79 addr4 = (struct sockaddr_in *)addr; in new_loopback_sockaddr() 80 addr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in new_loopback_sockaddr()
|
H A D | so_txtime.c | 366 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()
|
H A D | rxtimestamp.c | 282 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()
|
H A D | tcp_mmap.c | 341 struct sockaddr_in *addr4 = (void *) sockaddr; in setup_sockaddr() local 345 memset(addr4, 0, sizeof(*addr4)); in setup_sockaddr() 346 addr4->sin_family = AF_INET; in setup_sockaddr() 347 addr4->sin_port = htons(cfg_port); in setup_sockaddr() 349 inet_pton(AF_INET, str_addr, &(addr4->sin_addr)) != 1) in setup_sockaddr()
|
H A D | udpgso_bench_rx.c | 64 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()
|
H A D | io_uring_zerocopy_tx.c | 498 struct sockaddr_in *addr4 = (void *) &cfg_dst_addr; in parse_opts() local 546 memset(addr4, 0, sizeof(*addr4)); in parse_opts() 547 addr4->sin_family = AF_INET; in parse_opts() 548 addr4->sin_port = htons(cfg_port); in parse_opts() 550 inet_pton(AF_INET, daddr, &(addr4->sin_addr)) != 1) in parse_opts()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sk_assign.c | 219 struct sockaddr_in *addr4; in prepare_addr() local 224 addr4 = (struct sockaddr_in *)addr; in prepare_addr() 225 memset(addr4, 0, sizeof(*addr4)); in prepare_addr() 226 addr4->sin_family = family; in prepare_addr() 227 addr4->sin_port = htons(port); in prepare_addr() 229 addr4->sin_addr.s_addr = htonl(TEST_DADDR); in prepare_addr() 231 addr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in prepare_addr() 260 .addr = (FAMILY == AF_INET) ? (struct sockaddr *)&addr4 \ 262 .len = (FAMILY == AF_INET) ? sizeof(addr4) : sizeof(addr6), \ 269 struct sockaddr_in addr4; in test_sk_assign() local
|
H A D | cls_redirect.c | 143 struct sockaddr_in *addr4; in prepare_addr() local 148 addr4 = (struct sockaddr_in *)addr; in prepare_addr() 149 memset(addr4, 0, sizeof(*addr4)); in prepare_addr() 150 addr4->sin_family = family; in prepare_addr() 151 addr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in prepare_addr() 152 return sizeof(*addr4); in prepare_addr()
|
H A D | sockmap_helpers.h | 245 struct sockaddr_in *addr4 = memset(ss, 0, sizeof(*ss)); in init_addr_loopback4() local 247 addr4->sin_family = AF_INET; in init_addr_loopback4() 248 addr4->sin_port = 0; in init_addr_loopback4() 249 addr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in init_addr_loopback4() 250 *len = sizeof(*addr4); in init_addr_loopback4()
|
/openbmc/linux/drivers/net/wireguard/ |
H A D | socket.c | 25 .daddr = endpoint->addr4.sin_addr.s_addr, in send4() 26 .fl4_dport = endpoint->addr4.sin_port, in send4() 240 endpoint->addr4.sin_family = AF_INET; in wg_socket_endpoint_from_skb() 241 endpoint->addr4.sin_port = udp_hdr(skb)->source; in wg_socket_endpoint_from_skb() 242 endpoint->addr4.sin_addr.s_addr = ip_hdr(skb)->saddr; in wg_socket_endpoint_from_skb() 261 a->addr4.sin_port == b->addr4.sin_port && in endpoint_eq() 262 a->addr4.sin_addr.s_addr == b->addr4.sin_addr.s_addr && in endpoint_eq() 285 peer->endpoint.addr4 = endpoint->addr4; in wg_socket_set_peer_endpoint()
|
/openbmc/linux/net/netlabel/ |
H A D | netlabel_unlabeled.c | 408 const struct in_addr *addr4 = addr; in netlbl_unlhsh_add() local 411 ret_val = netlbl_unlhsh_add_addr4(iface, addr4, mask4, secid); in netlbl_unlhsh_add() 415 addr4->s_addr, in netlbl_unlhsh_add() 1065 const struct netlbl_unlhsh_addr4 *addr4, in netlbl_unlabel_staticlist_gen() argument 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() [all …]
|
/openbmc/linux/net/rds/ |
H A D | bind.c | 198 __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()
|
/openbmc/google-misc/subprojects/nemora-postd/src/ |
H A D | socket_manager.cpp | 69 auto addr4 = reinterpret_cast<const sockaddr*>(&bcast->destination); in SendDatagram() local 70 err = sendto(fd, serialized.c_str(), serialized.length(), 0, addr4, in SendDatagram()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum2_mr_tcam.c | 148 (char *) &key->source.addr4, in mlxsw_sp2_mr_tcam_rule_parse4() 149 (char *) &key->source_mask.addr4, 4); in mlxsw_sp2_mr_tcam_rule_parse4() 151 (char *) &key->group.addr4, in mlxsw_sp2_mr_tcam_rule_parse4() 152 (char *) &key->group_mask.addr4, 4); in mlxsw_sp2_mr_tcam_rule_parse4()
|