Searched refs:scope_id (Results 1 – 11 of 11) sorted by relevance
/Linux-v5.10/net/rds/ |
D | bind.c | 57 __be16 port, __u32 scope_id) in __rds_create_bind_key() argument 63 memcpy(key, &scope_id, sizeof(scope_id)); in __rds_create_bind_key() 73 __u32 scope_id) in rds_find_bound() argument 78 __rds_create_bind_key(key, addr, port, scope_id); in rds_find_bound() 95 __be16 *port, __u32 scope_id) in rds_add_bound() argument 118 scope_id); in rds_add_bound() 132 rs->rs_bound_scope_id = scope_id; in rds_add_bound() 169 __u32 scope_id = 0; in rds_bind() local 216 scope_id = sin6->sin6_scope_id; in rds_bind() 235 if (!ipv6_addr_any(&rs->rs_conn_addr) && scope_id && in rds_bind() [all …]
|
D | transport.c | 87 __u32 scope_id) in rds_trans_get_preferred() argument 104 if (trans && (trans->laddr_check(net, addr, scope_id) == 0) && in rds_trans_get_preferred()
|
D | ib.c | 417 __u32 scope_id) in rds_ib_laddr_check() argument 447 sin6.sin6_scope_id = scope_id; in rds_ib_laddr_check() 458 if (scope_id == 0) { in rds_ib_laddr_check() 466 dev = dev_get_by_index(&init_net, scope_id); in rds_ib_laddr_check() 493 addr, scope_id, ret, in rds_ib_laddr_check()
|
D | send.c | 1116 __u32 scope_id = 0; in rds_sendmsg() local 1188 scope_id = sin6->sin6_scope_id; in rds_sendmsg() 1206 scope_id = rs->rs_bound_scope_id; in rds_sendmsg() 1230 if (scope_id != rs->rs_bound_scope_id) { in rds_sendmsg() 1231 if (!scope_id) { in rds_sendmsg() 1232 scope_id = rs->rs_bound_scope_id; in rds_sendmsg() 1300 scope_id); in rds_sendmsg()
|
D | tcp.c | 317 __u32 scope_id) in rds_tcp_laddr_check() argument 333 if (scope_id != 0) { in rds_tcp_laddr_check() 335 dev = dev_get_by_index_rcu(net, scope_id); in rds_tcp_laddr_check()
|
D | rds.h | 544 __u32 scope_id); 741 __u32 scope_id); 1011 __u32 scope_id);
|
/Linux-v5.10/net/core/ |
D | utils.c | 337 char scope_id[16]; in inet6_pton() local 338 size_t scope_len = min_t(size_t, sizeof(scope_id) - 1, in inet6_pton() 341 memcpy(scope_id, scope_delim + 1, scope_len); in inet6_pton() 342 scope_id[scope_len] = '\0'; in inet6_pton() 344 dev = dev_get_by_name(net, scope_id); in inet6_pton() 348 } else if (kstrtouint(scope_id, 0, &addr6->sin6_scope_id)) { in inet6_pton()
|
/Linux-v5.10/net/sunrpc/ |
D | addr.c | 180 u32 scope_id = 0; in rpc_parse_scope_id() local 185 scope_id = dev->ifindex; in rpc_parse_scope_id() 188 if (kstrtou32(p, 10, &scope_id) == 0) { in rpc_parse_scope_id() 196 sin6->sin6_scope_id = scope_id; in rpc_parse_scope_id()
|
/Linux-v5.10/net/tipc/ |
D | udp_media.c | 575 u32 *scope_id) in tipc_parse_udp_addr() argument 597 if (scope_id) { in tipc_parse_udp_addr() 606 *scope_id = ip6->sin6_scope_id ? : 0; in tipc_parse_udp_addr()
|
/Linux-v5.10/fs/cifs/ |
D | netmisc.c | 156 char scope_id[13]; in cifs_convert_address() local 180 memcpy(scope_id, pct + 1, slen); in cifs_convert_address() 181 scope_id[slen] = '\0'; in cifs_convert_address() 183 rc = kstrtouint(scope_id, 0, &s6->sin6_scope_id); in cifs_convert_address()
|
/Linux-v5.10/tools/testing/selftests/net/ |
D | nettest.c | 56 int scope_id; /* remote scope; v6 send only */ member 1391 sin6.sin6_scope_id = args->scope_id; in do_client() 1529 args->scope_id = get_ifidx(dev); in convert_addr() 1530 if (args->scope_id < 0) { in convert_addr()
|