Home
last modified time | relevance | path

Searched refs:addr6 (Results 1 – 25 of 92) sorted by relevance

1234

/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum2_mr_tcam.c158 &key->source.addr6.s6_addr[0x0], in mlxsw_sp2_mr_tcam_rule_parse6()
161 &key->source.addr6.s6_addr[0x4], in mlxsw_sp2_mr_tcam_rule_parse6()
164 &key->source.addr6.s6_addr[0x8], in mlxsw_sp2_mr_tcam_rule_parse6()
167 &key->source.addr6.s6_addr[0xc], in mlxsw_sp2_mr_tcam_rule_parse6()
170 &key->group.addr6.s6_addr[0x0], in mlxsw_sp2_mr_tcam_rule_parse6()
171 &key->group_mask.addr6.s6_addr[0x0], 4); in mlxsw_sp2_mr_tcam_rule_parse6()
173 &key->group.addr6.s6_addr[0x4], in mlxsw_sp2_mr_tcam_rule_parse6()
174 &key->group_mask.addr6.s6_addr[0x4], 4); in mlxsw_sp2_mr_tcam_rule_parse6()
176 &key->group.addr6.s6_addr[0x8], in mlxsw_sp2_mr_tcam_rule_parse6()
177 &key->group_mask.addr6.s6_addr[0x8], 4); in mlxsw_sp2_mr_tcam_rule_parse6()
[all …]
H A Dspectrum_nve.c50 struct in6_addr addr6; member
137 &addr->addr6, &kvdl_index); in mlxsw_sp_nve_mc_record_ipv6_entry_add()
141 mc_entry->ipv6_entry.addr6 = addr->addr6; in mlxsw_sp_nve_mc_record_ipv6_entry_add()
151 &mc_entry->ipv6_entry.addr6); in mlxsw_sp_nve_mc_record_ipv6_entry_del()
169 return ipv6_addr_equal(&mc_entry->ipv6_entry.addr6, &addr->addr6); in mlxsw_sp_nve_mc_record_ipv6_entry_compare()
809 struct in6_addr addr6; member
819 const struct in6_addr *addr6, in mlxsw_sp_nve_ipv6_addr_kvdl_set() argument
826 const struct in6_addr *addr6) in mlxsw_sp_nve_ipv6_addr_kvdl_unset() argument
845 const struct in6_addr *addr6) in mlxsw_sp_nve_ipv6_ht_insert() argument
857 ipv6_ht_node->addr6 = *addr6; in mlxsw_sp_nve_ipv6_ht_insert()
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dbind_wildcard.c30 struct sockaddr_in6 addr6; in FIXTURE() local
102 self->addr6.sin6_family = AF_INET6; in FIXTURE_SETUP()
103 self->addr6.sin6_port = htons(0); in FIXTURE_SETUP()
104 self->addr6.sin6_addr = *variant->addr6_const; in FIXTURE_SETUP()
150 (struct sockaddr *)&self->addr6, sizeof(self->addr6)); in TEST_F()
156 (struct sockaddr *)&self->addr6, sizeof(self->addr6), in TEST_F()
H A Dtcp_inq.c38 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_loopback_addr() local
49 memset(addr6, 0, sizeof(*addr6)); in setup_loopback_addr()
50 addr6->sin6_family = AF_INET6; in setup_loopback_addr()
51 addr6->sin6_addr = in6addr_loopback; in setup_loopback_addr()
52 addr6->sin6_port = htons(port); in setup_loopback_addr()
H A Dreuseport_addr_any.c38 struct sockaddr_in6 addr6 = {0}; in build_rcv_fd() local
56 addr6.sin6_family = AF_INET6; in build_rcv_fd()
58 addr6.sin6_addr = in6addr_any; in build_rcv_fd()
59 else if (!inet_pton(family, addr_str, &addr6.sin6_addr)) in build_rcv_fd()
61 addr6.sin6_port = htons(PORT); in build_rcv_fd()
62 sz = sizeof(addr6); in build_rcv_fd()
63 addr = (struct sockaddr *)&addr6; in build_rcv_fd()
H A Dreuseaddr_conflict.c31 struct sockaddr_in6 addr6 = { in open_port() local
44 addr = (struct sockaddr*)&addr6; in open_port()
45 addrlen = sizeof(addr6); in open_port()
H A Dreuseport_dualstack.c35 struct sockaddr_in6 *addr6; in build_rcv_fd() local
46 addr6 = (struct sockaddr_in6 *)&addr; in build_rcv_fd()
47 addr6->sin6_family = AF_INET6; in build_rcv_fd()
48 addr6->sin6_addr = in6addr_any; in build_rcv_fd()
49 addr6->sin6_port = htons(PORT); in build_rcv_fd()
H A Dtcp_fastopen_backup_key.c92 struct sockaddr_in6 addr6 = {0}; in build_rcv_fd() local
107 addr6.sin6_family = AF_INET6; in build_rcv_fd()
108 addr6.sin6_addr = in6addr_any; in build_rcv_fd()
109 addr6.sin6_port = htons(PORT); in build_rcv_fd()
110 sz = sizeof(addr6); in build_rcv_fd()
111 addr = (struct sockaddr *)&addr6; in build_rcv_fd()
H A Dreuseport_bpf_cpu.c38 struct sockaddr_in6 *addr6; in build_rcv_group() local
50 addr6 = (struct sockaddr_in6 *)&addr; in build_rcv_group()
51 addr6->sin6_family = AF_INET6; in build_rcv_group()
52 addr6->sin6_addr = in6addr_any; in build_rcv_group()
53 addr6->sin6_port = htons(PORT); in build_rcv_group()
H A Dtraceroute.sh67 local addr6=$3
70 [ -z "${addr6}" ] && addr6="-"
78 if [ "${addr6}" != "-" ]; then
79 ip netns exec ${ns} ip -6 addr add dev lo ${addr6}
H A Dreuseport_bpf_numa.c34 struct sockaddr_in6 *addr6; in build_rcv_group() local
46 addr6 = (struct sockaddr_in6 *)&addr; in build_rcv_group()
47 addr6->sin6_family = AF_INET6; in build_rcv_group()
48 addr6->sin6_addr = in6addr_any; in build_rcv_group()
49 addr6->sin6_port = htons(PORT); in build_rcv_group()
H A Dso_txtime.c365 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_sockaddr() local
378 memset(addr6, 0, sizeof(*addr6)); in setup_sockaddr()
379 addr6->sin6_family = AF_INET6; in setup_sockaddr()
380 addr6->sin6_port = htons(cfg_port); in setup_sockaddr()
382 inet_pton(AF_INET6, str_addr, &(addr6->sin6_addr)) != 1) in setup_sockaddr()
H A Dreuseport_bpf.c47 struct sockaddr_in6 *addr6; in new_any_sockaddr() local
60 addr6 = (struct sockaddr_in6 *)addr; in new_any_sockaddr()
61 addr6->sin6_family = AF_INET6; in new_any_sockaddr()
62 addr6->sin6_addr = in6addr_any; in new_any_sockaddr()
63 addr6->sin6_port = htons(port); in new_any_sockaddr()
75 struct sockaddr_in6 *addr6; in new_loopback_sockaddr() local
83 addr6 = (struct sockaddr_in6 *)addr; in new_loopback_sockaddr()
84 addr6->sin6_addr = in6addr_loopback; in new_loopback_sockaddr()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_tcp_check_syncookie_user.c222 struct sockaddr_in6 addr6; in main() local
252 memset(&addr6, 0, sizeof(addr6)); in main()
253 addr6.sin6_family = AF_INET6; in main()
254 addr6.sin6_addr = in6addr_loopback; in main()
255 addr6.sin6_port = 0; in main()
267 server_v6 = start_server((const struct sockaddr *)&addr6, in main()
268 sizeof(addr6), false); in main()
269 if (server_v6 == -1 || !get_port(server_v6, &addr6.sin6_port)) in main()
282 (const struct sockaddr *)&addr6, sizeof(addr6))) in main()
H A Dtest_sock.c417 struct sockaddr_in6 *addr6; in bind_sock() local
438 addr6 = (struct sockaddr_in6 *)&addr; in bind_sock()
439 addr6->sin6_family = domain; in bind_sock()
440 addr6->sin6_port = htons(port); in bind_sock()
441 if (inet_pton(domain, ip, (void *)&addr6->sin6_addr) != 1) in bind_sock()
464 addr6->sin6_port = htons(port_retry); in bind_sock()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsk_assign.c220 struct sockaddr_in6 *addr6; in prepare_addr() local
234 addr6 = (struct sockaddr_in6 *)addr; in prepare_addr()
235 memset(addr6, 0, sizeof(*addr6)); in prepare_addr()
236 addr6->sin6_family = family; in prepare_addr()
237 addr6->sin6_port = htons(port); in prepare_addr()
238 addr6->sin6_addr = in6addr_loopback; in prepare_addr()
240 addr6->sin6_addr.s6_addr32[3] = htonl(TEST_DADDR); in prepare_addr()
261 : (struct sockaddr *)&addr6, \
262 .len = (FAMILY == AF_INET) ? sizeof(addr4) : sizeof(addr6), \
270 struct sockaddr_in6 addr6; in test_sk_assign() local
H A Dcls_redirect.c144 struct sockaddr_in6 *addr6; in prepare_addr() local
154 addr6 = (struct sockaddr_in6 *)addr; in prepare_addr()
155 memset(addr6, 0, sizeof(*addr6)); in prepare_addr()
156 addr6->sin6_family = family; in prepare_addr()
157 addr6->sin6_addr = in6addr_loopback; in prepare_addr()
158 return sizeof(*addr6); in prepare_addr()
H A Dtcp_hdr_options.c94 struct sockaddr_in6 addr6; in sk_fds_connect() local
112 len = sizeof(addr6); in sk_fds_connect()
113 if (!ASSERT_OK(getsockname(sk_fds->srv_fd, (struct sockaddr *)&addr6, in sk_fds_connect()
116 sk_fds->passive_lport = ntohs(addr6.sin6_port); in sk_fds_connect()
118 len = sizeof(addr6); in sk_fds_connect()
119 if (!ASSERT_OK(getsockname(sk_fds->active_fd, (struct sockaddr *)&addr6, in sk_fds_connect()
122 sk_fds->active_lport = ntohs(addr6.sin6_port); in sk_fds_connect()
/openbmc/linux/net/smc/
H A Dsmc_ib.h64 struct in6_addr *addr6 = (struct in6_addr *)gid; in smc_ib_gid_to_ipv4() local
66 if (ipv6_addr_v4mapped(addr6) || in smc_ib_gid_to_ipv4()
67 !(addr6->s6_addr32[0] | addr6->s6_addr32[1] | addr6->s6_addr32[2])) in smc_ib_gid_to_ipv4()
68 return addr6->s6_addr32[3]; in smc_ib_gid_to_ipv4()
/openbmc/linux/drivers/net/wireguard/
H A Dsocket.c103 .daddr = endpoint->addr6.sin6_addr, in send6()
104 .fl6_dport = endpoint->addr6.sin6_port, in send6()
106 .flowi6_oif = endpoint->addr6.sin6_scope_id, in send6()
246 endpoint->addr6.sin6_family = AF_INET6; in wg_socket_endpoint_from_skb()
247 endpoint->addr6.sin6_port = udp_hdr(skb)->source; in wg_socket_endpoint_from_skb()
248 endpoint->addr6.sin6_addr = ipv6_hdr(skb)->saddr; in wg_socket_endpoint_from_skb()
249 endpoint->addr6.sin6_scope_id = ipv6_iface_scope_id( in wg_socket_endpoint_from_skb()
266 a->addr6.sin6_port == b->addr6.sin6_port && in endpoint_eq()
267 ipv6_addr_equal(&a->addr6.sin6_addr, &b->addr6.sin6_addr) && in endpoint_eq()
268 a->addr6.sin6_scope_id == b->addr6.sin6_scope_id && in endpoint_eq()
[all …]
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dclip_tbl.c90 if (cte->addr6.sin6_family == AF_INET6 && v6) in cxgb4_clip_get()
91 ret = memcmp(lip, cte->addr6.sin6_addr.s6_addr, in cxgb4_clip_get()
115 ce->addr6.sin6_family = AF_INET6; in cxgb4_clip_get()
116 memcpy(ce->addr6.sin6_addr.s6_addr, in cxgb4_clip_get()
125 ret, ce->addr6.sin6_addr.s6_addr); in cxgb4_clip_get()
162 if (cte->addr6.sin6_family == AF_INET6 && v6) in cxgb4_clip_release()
163 ret = memcmp(lip, cte->addr6.sin6_addr.s6_addr, in cxgb4_clip_release()
/openbmc/linux/net/core/
H A Dutils.c323 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)addr; in inet6_pton() local
330 if (in6_pton(src, srclen, (u8 *)&addr6->sin6_addr.s6_addr, in inet6_pton()
334 if (ipv6_addr_type(&addr6->sin6_addr) & IPV6_ADDR_LINKLOCAL && in inet6_pton()
346 addr6->sin6_scope_id = dev->ifindex; in inet6_pton()
348 } else if (kstrtouint(scope_id, 0, &addr6->sin6_scope_id)) { in inet6_pton()
353 addr6->sin6_family = AF_INET6; in inet6_pton()
354 addr6->sin6_port = htons(port_num); in inet6_pton()
/openbmc/linux/net/netlabel/
H A Dnetlabel_unlabeled.c421 const struct in6_addr *addr6 = addr; in netlbl_unlhsh_add() local
428 addr6, mask6); in netlbl_unlhsh_add()
1117 &addr6->list.addr); in netlbl_unlabel_staticlist_gen()
1123 &addr6->list.mask); in netlbl_unlabel_staticlist_gen()
1127 secid = addr6->secid; in netlbl_unlabel_staticlist_gen()
1174 struct netlbl_af6list *addr6; in netlbl_unlabel_staticlist() local
1208 netlbl_af6list_foreach_rcu(addr6, in netlbl_unlabel_staticlist()
1216 netlbl_unlhsh_addr6_entry(addr6), in netlbl_unlabel_staticlist()
1259 struct netlbl_af6list *addr6; in netlbl_unlabel_staticlistdef() local
1496 struct netlbl_af6list *addr6; in netlbl_unlabel_getattr() local
[all …]
/openbmc/ipmitool/src/plugins/
H A Dipmi_intf.c393 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)rp->ai_addr; in ipmi_intf_socket_connect() local
398 if (addr6->sin6_scope_id != 0) { in ipmi_intf_socket_connect()
400 …if (getnameinfo((struct sockaddr *)addr6, len, hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) == 0) { in ipmi_intf_socket_connect()
403 addr6->sin6_scope_id); in ipmi_intf_socket_connect()
444 addr6->sin6_scope_id = tmp6->sin6_scope_id; in ipmi_intf_socket_connect()
455 addr6->sin6_scope_id = ntohs(tmp6->sin6_addr.s6_addr[1]); in ipmi_intf_socket_connect()
460 if (addr6->sin6_scope_id != 0) { in ipmi_intf_socket_connect()
/openbmc/google-misc/subprojects/nemora-postd/src/
H A Dsocket_manager.cpp56 auto addr6 = reinterpret_cast<const sockaddr*>(&bcast->destination6); in SendDatagram() local
57 auto err = sendto(fd, serialized.c_str(), serialized.length(), 0, addr6, in SendDatagram()

1234