/net/sctp/ |
D | bind_addr.c | 49 union sctp_addr *addr, enum sctp_scope scope, 60 enum sctp_scope scope, gfp_t gfp, in sctp_bind_addr_copy() argument 71 error = sctp_copy_one_addr(net, dest, &addr->a, scope, in sctp_bind_addr_copy() 81 if (list_empty(&dest->address_list) && (SCTP_SCOPE_GLOBAL == scope)) { in sctp_bind_addr_copy() 443 union sctp_addr *addr, enum sctp_scope scope, in sctp_copy_one_addr() argument 449 error = sctp_copy_local_addr_list(net, dest, scope, gfp, flags); in sctp_copy_one_addr() 450 } else if (sctp_in_scope(net, addr, scope)) { in sctp_copy_one_addr() 488 enum sctp_scope scope) in sctp_in_scope() argument 510 if (addr_scope <= scope) in sctp_in_scope() 514 if (addr_scope <= scope || SCTP_SCOPE_PRIVATE == addr_scope) in sctp_in_scope() [all …]
|
D | associola.c | 70 enum sctp_scope scope, gfp_t gfp) in sctp_association_init() argument 306 enum sctp_scope scope, gfp_t gfp) in sctp_association_new() argument 314 if (!sctp_association_init(asoc, ep, sk, scope, gfp)) in sctp_association_new() 1599 enum sctp_scope scope, gfp_t gfp) in sctp_assoc_set_bind_addr_from_ep() argument 1615 scope, gfp, flags); in sctp_assoc_set_bind_addr_from_ep()
|
D | ipv6.c | 245 enum sctp_scope scope; in sctp_v6_get_dst() local 278 scope = sctp_scope(daddr); in sctp_v6_get_dst() 320 scope > sctp_scope(&laddr->a)) in sctp_v6_get_dst() 1035 .scope = sctp_v6_scope,
|
D | sm_make_chunk.c | 1584 enum sctp_scope scope; in sctp_make_temp_asoc() local 1588 scope = sctp_scope(sctp_source(chunk)); in sctp_make_temp_asoc() 1589 asoc = sctp_association_new(ep, ep->base.sk, scope, gfp); in sctp_make_temp_asoc() 1707 enum sctp_scope scope; in sctp_unpack_cookie() local 1822 scope = sctp_scope(sctp_source(chunk)); in sctp_unpack_cookie() 1823 retval = sctp_association_new(ep, ep->base.sk, scope, gfp); in sctp_unpack_cookie() 2499 enum sctp_scope scope; in sctp_process_param() local 2523 scope = sctp_scope(peer_addr); in sctp_process_param() 2524 if (sctp_in_scope(net, &addr, scope)) in sctp_process_param()
|
D | protocol.c | 198 enum sctp_scope scope, gfp_t gfp, int copy_flags) in sctp_copy_local_addr_list() argument 208 if (!sctp_in_scope(net, &addr->a, scope)) in sctp_copy_local_addr_list() 1090 .scope = sctp_v4_scope,
|
D | socket.c | 1089 enum sctp_scope scope; in __sctp_connect() local 1199 scope = sctp_scope(&to); in __sctp_connect() 1200 asoc = sctp_association_new(ep, sk, scope, GFP_KERNEL); in __sctp_connect() 1206 err = sctp_assoc_set_bind_addr_from_ep(asoc, scope, in __sctp_connect() 1645 enum sctp_scope scope; in sctp_sendmsg() local 1867 scope = sctp_scope(&to); in sctp_sendmsg() 1868 new_asoc = sctp_association_new(ep, sk, scope, GFP_KERNEL); in sctp_sendmsg() 1874 err = sctp_assoc_set_bind_addr_from_ep(asoc, scope, GFP_KERNEL); in sctp_sendmsg()
|
/net/decnet/ |
D | dn_fib.c | 68 u8 scope; member 70 [RTN_UNSPEC] = { .error = 0, .scope = RT_SCOPE_NOWHERE }, 71 [RTN_UNICAST] = { .error = 0, .scope = RT_SCOPE_UNIVERSE }, 72 [RTN_LOCAL] = { .error = 0, .scope = RT_SCOPE_HOST }, 73 [RTN_BROADCAST] = { .error = -EINVAL, .scope = RT_SCOPE_NOWHERE }, 74 [RTN_ANYCAST] = { .error = -EINVAL, .scope = RT_SCOPE_NOWHERE }, 75 [RTN_MULTICAST] = { .error = -EINVAL, .scope = RT_SCOPE_NOWHERE }, 76 [RTN_BLACKHOLE] = { .error = -EINVAL, .scope = RT_SCOPE_UNIVERSE }, 77 [RTN_UNREACHABLE] = { .error = -EHOSTUNREACH, .scope = RT_SCOPE_UNIVERSE }, 78 [RTN_PROHIBIT] = { .error = -EACCES, .scope = RT_SCOPE_UNIVERSE }, [all …]
|
D | dn_table.c | 301 u32 tb_id, u8 type, u8 scope, void *dst, int dst_len, in dn_fib_dump_info() argument 318 rtm->rtm_scope = scope; in dn_fib_dump_info() 819 res->scope = f->fn_scope; in dn_fib_table_lookup()
|
D | dn_route.c | 914 static __le16 dnet_select_source(const struct net_device *dev, __le16 daddr, int scope) in dnet_select_source() argument 927 if (ifa->ifa_scope > scope) in dnet_select_source() 946 return dnet_select_source(DN_FIB_RES_DEV(*res), DN_FIB_RES_GW(*res), res->scope); in __dn_fib_res_prefsrc()
|
/net/tipc/ |
D | name_distr.c | 94 &tn->nametbl->publ_list[publ->scope]); in tipc_named_publish() 96 if (publ->scope == TIPC_NODE_SCOPE) in tipc_named_publish() 120 if (publ->scope == TIPC_NODE_SCOPE) in tipc_named_withdraw() 388 int scope; in tipc_named_reinit() local 392 for (scope = TIPC_ZONE_SCOPE; scope <= TIPC_NODE_SCOPE; scope++) in tipc_named_reinit() 393 list_for_each_entry_rcu(publ, &tn->nametbl->publ_list[scope], in tipc_named_reinit()
|
D | name_table.c | 116 u32 scope, u32 node, u32 port_ref, in publ_create() argument 128 publ->scope = scope; in publ_create() 230 u32 upper, u32 scope, in tipc_nameseq_insert_publ() argument 309 publ = publ_create(type, lower, upper, scope, node, port, key); in tipc_nameseq_insert_publ() 460 u32 lower, u32 upper, u32 scope, in tipc_nametbl_insert_publ() argument 468 if ((scope < TIPC_ZONE_SCOPE) || (scope > TIPC_NODE_SCOPE) || in tipc_nametbl_insert_publ() 471 type, lower, upper, scope); in tipc_nametbl_insert_publ() 482 scope, node, port, key); in tipc_nametbl_insert_publ() 636 if (publ->scope <= limit) in tipc_nametbl_mc_translate() 686 u32 upper, u32 scope, u32 port_ref, in tipc_nametbl_publish() argument [all …]
|
D | name_table.h | 74 u32 scope; member 108 u32 upper, u32 scope, u32 port_ref, 113 u32 lower, u32 upper, u32 scope,
|
D | socket.c | 122 static int tipc_sk_publish(struct tipc_sock *tsk, uint scope, 124 static int tipc_sk_withdraw(struct tipc_sock *tsk, uint scope, 628 res = (addr->scope > 0) ? in tipc_bind() 629 tipc_sk_publish(tsk, addr->scope, &addr->addr.nameseq) : in tipc_bind() 630 tipc_sk_withdraw(tsk, -addr->scope, &addr->addr.nameseq); in tipc_bind() 672 addr->scope = 0; in tipc_getname() 809 u32 scope = TIPC_CLUSTER_SCOPE; in tipc_sk_mcast_rcv() local 823 scope = TIPC_NODE_SCOPE; in tipc_sk_mcast_rcv() 828 msg_nameupper(msg), scope, &dports); in tipc_sk_mcast_rcv() 1164 addr->scope = 0; /* could leave uninitialized */ in set_orig_addr() [all …]
|
D | subscr.c | 362 saddr->scope = TIPC_NODE_SCOPE; in tipc_topsrv_start()
|
D | server.c | 104 saddr->scope = -TIPC_NODE_SCOPE; in tipc_conn_kref_release()
|
/net/ipv6/ |
D | addrconf_core.c | 18 #define IPV6_ADDR_SCOPE_TYPE(scope) ((scope) << 16) argument 20 static inline unsigned int ipv6_addr_scope2type(unsigned int scope) in ipv6_addr_scope2type() argument 22 switch (scope) { in ipv6_addr_scope2type() 33 return IPV6_ADDR_SCOPE_TYPE(scope); in ipv6_addr_scope2type()
|
D | addrconf.c | 964 int scope, u32 flags, u32 valid_lft, u32 prefered_lft) in ipv6_add_addr() argument 1041 ifa->scope = scope; in ipv6_add_addr() 1394 int scope; member 1476 if (ret >= dst->scope) in ipv6_get_saddr_eval() 1673 dst.scope = __ipv6_addr_src_scope(dst_type); in ipv6_dev_get_saddr() 1701 dst.scope <= IPV6_ADDR_SCOPE_LINKLOCAL || in ipv6_dev_get_saddr() 1763 if (ifp->scope > IFA_LINK) in __ipv6_get_lladdr() 1765 if (ifp->scope == IFA_LINK && in __ipv6_get_lladdr() 1832 !(ifp->scope&(IFA_LINK|IFA_HOST) || strict))) { in ipv6_chk_addr_and_flags() 1923 !(ifp->scope&(IFA_LINK|IFA_HOST) || strict)) { in ipv6_get_ifaddr() [all …]
|
/net/ipv4/ |
D | fib_semantics.c | 96 .scope = RT_SCOPE_NOWHERE, 100 .scope = RT_SCOPE_UNIVERSE, 104 .scope = RT_SCOPE_HOST, 108 .scope = RT_SCOPE_LINK, 112 .scope = RT_SCOPE_LINK, 116 .scope = RT_SCOPE_UNIVERSE, 120 .scope = RT_SCOPE_UNIVERSE, 124 .scope = RT_SCOPE_UNIVERSE, 128 .scope = RT_SCOPE_UNIVERSE, 132 .scope = RT_SCOPE_UNIVERSE, [all …]
|
D | fib_frontend.c | 277 int scope; in fib_compute_spec_dst() local 288 scope = RT_SCOPE_UNIVERSE; in fib_compute_spec_dst() 296 .flowi4_scope = scope, in fib_compute_spec_dst() 302 scope = RT_SCOPE_LINK; in fib_compute_spec_dst() 305 return inet_select_addr(dev, ip_hdr(skb)->saddr, scope); in fib_compute_spec_dst() 1092 frn->scope = res.scope; in nl_fib_lookup()
|
D | devinet.c | 1228 int scope) in in_dev_select_addr() argument 1232 ifa->ifa_scope <= scope) in in_dev_select_addr() 1239 __be32 inet_select_addr(const struct net_device *dev, __be32 dst, int scope) in inet_select_addr() argument 1252 if (ifa->ifa_scope > scope) in inet_select_addr() 1275 addr = in_dev_select_addr(in_dev, scope); in inet_select_addr() 1292 addr = in_dev_select_addr(in_dev, scope); in inet_select_addr() 1303 __be32 local, int scope) in confirm_addr_indev() argument 1311 ifa->ifa_scope <= scope) { in confirm_addr_indev() 1326 if (ifa->ifa_scope <= scope) { in confirm_addr_indev() 1348 __be32 dst, __be32 local, int scope) in inet_confirm_addr() argument [all …]
|
D | fib_lookup.h | 52 u8 scope; member
|
D | arp.c | 400 int scope; in arp_ignore() local 407 scope = RT_SCOPE_HOST; in arp_ignore() 413 scope = RT_SCOPE_HOST; in arp_ignore() 417 scope = RT_SCOPE_LINK; in arp_ignore() 430 return !inet_confirm_addr(net, in_dev, sip, tip, scope); in arp_ignore()
|
D | fib_trie.c | 1473 res->scope = fi->fib_scope; in fib_table_lookup()
|
/net/x25/ |
D | Kconfig | 8 X.25 is a set of standardized network protocols, similar in scope to
|
/net/ipx/ |
D | Kconfig | 18 IPX is similar in scope to IP, while SPX, which runs on top of IPX,
|