/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum2_mr_tcam.c | 167 &key->source.addr6.s6_addr[0x0], in mlxsw_sp2_mr_tcam_rule_parse6() 168 &key->source_mask.addr6.s6_addr[0x0], 4); in mlxsw_sp2_mr_tcam_rule_parse6() 170 &key->source.addr6.s6_addr[0x4], in mlxsw_sp2_mr_tcam_rule_parse6() 171 &key->source_mask.addr6.s6_addr[0x4], 4); in mlxsw_sp2_mr_tcam_rule_parse6() 173 &key->source.addr6.s6_addr[0x8], in mlxsw_sp2_mr_tcam_rule_parse6() 174 &key->source_mask.addr6.s6_addr[0x8], 4); in mlxsw_sp2_mr_tcam_rule_parse6() 176 &key->source.addr6.s6_addr[0xc], in mlxsw_sp2_mr_tcam_rule_parse6() 177 &key->source_mask.addr6.s6_addr[0xc], 4); in mlxsw_sp2_mr_tcam_rule_parse6() 179 &key->group.addr6.s6_addr[0x0], in mlxsw_sp2_mr_tcam_rule_parse6() 180 &key->group_mask.addr6.s6_addr[0x0], 4); in mlxsw_sp2_mr_tcam_rule_parse6() [all …]
|
H A D | spectrum_nve.c | 50 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 822 return mlxsw_sp_ipv6_addr_kvdl_index_get(mlxsw_sp, addr6, p_kvdl_index); in mlxsw_sp_nve_ipv6_addr_kvdl_set() 826 const struct in6_addr *addr6) in mlxsw_sp_nve_ipv6_addr_kvdl_unset() argument 828 mlxsw_sp_ipv6_addr_put(mlxsw_sp, addr6); in mlxsw_sp_nve_ipv6_addr_kvdl_unset() [all …]
|
H A D | spectrum_ipip.c | 82 return (union mlxsw_sp_l3addr) { .addr6 = parms->laddr }; in mlxsw_sp_ipip_parms6_saddr() 94 return (union mlxsw_sp_l3addr) { .addr6 = parms->raddr }; in mlxsw_sp_ipip_parms6_daddr() 485 struct in6_addr old_addr6 = ipip_entry->parms.daddr.addr6; in mlxsw_sp_ipip_ol_netdev_change_gre6() 492 &new_parms.daddr.addr6, in mlxsw_sp_ipip_ol_netdev_change_gre6() 509 mlxsw_sp_ipv6_addr_put(mlxsw_sp, &new_parms.daddr.addr6); in mlxsw_sp_ipip_ol_netdev_change_gre6() 518 &ipip_entry->parms.daddr.addr6, in mlxsw_sp_ipip_rem_addr_set_gre6() 526 mlxsw_sp_ipv6_addr_put(mlxsw_sp, &ipip_entry->parms.daddr.addr6); in mlxsw_sp_ipip_rem_addr_unset_gre6()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sk_assign.c | 173 struct sockaddr_in6 *addr6; in prepare_addr() local 187 addr6 = (struct sockaddr_in6 *)addr; in prepare_addr() 188 memset(addr6, 0, sizeof(*addr6)); in prepare_addr() 189 addr6->sin6_family = family; in prepare_addr() 190 addr6->sin6_port = htons(port); in prepare_addr() 191 addr6->sin6_addr = in6addr_loopback; in prepare_addr() 193 addr6->sin6_addr.s6_addr32[3] = htonl(TEST_DADDR); in prepare_addr() 214 : (struct sockaddr *)&addr6, \ 215 .len = (FAMILY == AF_INET) ? sizeof(addr4) : sizeof(addr6), \ 223 struct sockaddr_in6 addr6; in test_sk_assign() local
|
H A D | cls_redirect.c | 112 struct sockaddr_in6 *addr6; in prepare_addr() local 122 addr6 = (struct sockaddr_in6 *)addr; in prepare_addr() 123 memset(addr6, 0, sizeof(*addr6)); in prepare_addr() 124 addr6->sin6_family = family; in prepare_addr() 125 addr6->sin6_addr = in6addr_loopback; in prepare_addr() 126 return sizeof(*addr6); in prepare_addr()
|
H A D | tcp_hdr_options.c | 94 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()
|
H A D | socket_helpers.h | 164 struct sockaddr_in6 *addr6 = memset(ss, 0, sizeof(*ss)); in init_addr_loopback6() local 166 addr6->sin6_family = AF_INET6; in init_addr_loopback6() 167 addr6->sin6_port = 0; in init_addr_loopback6() 168 addr6->sin6_addr = in6addr_loopback; in init_addr_loopback6() 169 *len = sizeof(*addr6); in init_addr_loopback6()
|
/linux/net/smc/ |
H A D | smc_ib.h | 64 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()
|
/linux/drivers/net/wireguard/ |
H A D | socket.c | 103 .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 …]
|
/linux/tools/testing/selftests/net/ |
H A D | tcp_inq.c | 38 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 D | reuseport_addr_any.c | 38 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 D | io_uring_zerocopy_tx.c | 233 struct sockaddr_in6 *addr6 = (void *) &cfg_dst_addr; in parse_opts() local 290 memset(addr6, 0, sizeof(*addr6)); in parse_opts() 291 addr6->sin6_family = AF_INET6; in parse_opts() 292 addr6->sin6_port = htons(cfg_port); in parse_opts() 294 inet_pton(AF_INET6, daddr, &(addr6->sin6_addr)) != 1) in parse_opts()
|
H A D | reuseport_dualstack.c | 35 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 D | reuseaddr_conflict.c | 31 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 D | tcp_fastopen_backup_key.c | 92 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 D | traceroute.sh | 68 local addr6=$3 71 [ -z "${addr6}" ] && addr6="-" 76 if [ "${addr6}" != "-" ]; then 77 ip netns exec ${ns} ip -6 addr add dev lo ${addr6}
|
H A D | reuseport_bpf_cpu.c | 38 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 D | reuseport_bpf_numa.c | 34 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 D | reuseport_bpf.c | 47 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()
|
H A D | so_txtime.c | 368 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_sockaddr() local 381 memset(addr6, 0, sizeof(*addr6)); in setup_sockaddr() 382 addr6->sin6_family = AF_INET6; in setup_sockaddr() 383 addr6->sin6_port = htons(cfg_port); in setup_sockaddr() 385 inet_pton(AF_INET6, str_addr, &(addr6->sin6_addr)) != 1) in setup_sockaddr()
|
H A D | rxtimestamp.c | 299 struct sockaddr_in6 addr6; in run_test_case() member 318 addr.addr6.sin6_family = AF_INET6; in run_test_case() 319 addr.addr6.sin6_addr = in6addr_loopback; in run_test_case() 320 addr.addr6.sin6_port = htons(port); in run_test_case() 321 addr_size = sizeof(addr.addr6); in run_test_case()
|
H A D | tcp_mmap.c | 340 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_sockaddr() local 353 memset(addr6, 0, sizeof(*addr6)); in setup_sockaddr() 354 addr6->sin6_family = AF_INET6; in setup_sockaddr() 355 addr6->sin6_port = htons(cfg_port); in setup_sockaddr() 357 inet_pton(AF_INET6, str_addr, &(addr6->sin6_addr)) != 1) in setup_sockaddr()
|
/linux/net/netlabel/ |
H A D | netlabel_unlabeled.c | 421 const struct in6_addr *addr6 = addr; in netlbl_unlhsh_add() local 424 ret_val = netlbl_unlhsh_add_addr6(iface, addr6, mask6, secid); in netlbl_unlhsh_add() 428 addr6, mask6); in netlbl_unlhsh_add() 1052 * @addr6: the IPv6 address entry 1057 * STATICLIST or STATICLISTDEF message. When called either @addr4 or @addr6 1066 const struct netlbl_unlhsh_addr6 *addr6, in netlbl_unlabel_staticlist_gen() argument 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 1259 struct netlbl_af6list *addr6; netlbl_unlabel_staticlistdef() local 1496 struct netlbl_af6list *addr6; netlbl_unlabel_getattr() local [all...] |
/linux/net/core/ |
H A D | utils.c | 323 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()
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_sock.c |
|