/net/ipv6/ |
D | addrconf_core.c | 8 #define IPV6_ADDR_SCOPE_TYPE(scope) ((scope) << 16) argument 10 static inline unsigned ipv6_addr_scope2type(unsigned scope) in ipv6_addr_scope2type() argument 12 switch(scope) { in ipv6_addr_scope2type() 23 return IPV6_ADDR_SCOPE_TYPE(scope); in ipv6_addr_scope2type()
|
D | addrconf.c | 589 int scope, u32 flags) in ipv6_add_addr() argument 637 ifa->scope = scope; in ipv6_add_addr() 979 int scope; member 1045 if (ret >= dst->scope) in ipv6_get_saddr_eval() 1125 dst.scope = __ipv6_addr_src_scope(dst_type); in ipv6_dev_get_saddr() 1151 dst.scope <= IPV6_ADDR_SCOPE_LINKLOCAL) && in ipv6_dev_get_saddr() 1258 if (ifp->scope == IFA_LINK && !(ifp->flags & banned_flags)) { in ipv6_get_lladdr() 1295 !(ifp->scope&(IFA_LINK|IFA_HOST) || strict)) in ipv6_chk_addr() 1359 !(ifp->scope&(IFA_LINK|IFA_HOST) || strict)) { in ipv6_get_ifaddr() 1593 if (ifp->scope == IFA_LINK && !(ifp->flags&IFA_F_TENTATIVE)) { in ipv6_inherit_eui64() [all …]
|
D | Kconfig | 29 pseudo-random global-scope unicast address(es) will assigned to
|
/net/sctp/ |
D | bind_addr.c | 55 sctp_scope_t scope, gfp_t gfp, 66 sctp_scope_t scope, gfp_t gfp, in sctp_bind_addr_copy() argument 77 error = sctp_copy_one_addr(dest, &addr->a, scope, in sctp_bind_addr_copy() 87 if (list_empty(&dest->address_list) && (SCTP_SCOPE_GLOBAL == scope)) { in sctp_bind_addr_copy() 455 sctp_scope_t scope, gfp_t gfp, in sctp_copy_one_addr() argument 461 error = sctp_copy_local_addr_list(dest, scope, gfp, flags); in sctp_copy_one_addr() 462 } else if (sctp_in_scope(addr, scope)) { in sctp_copy_one_addr() 499 int sctp_in_scope(const union sctp_addr *addr, sctp_scope_t scope) in sctp_in_scope() argument 514 if (addr_scope <= scope) in sctp_in_scope() 533 return af->scope((union sctp_addr *)addr); in sctp_scope()
|
D | associola.c | 73 sctp_scope_t scope, in sctp_association_init() argument 343 sctp_scope_t scope, in sctp_association_new() argument 352 if (!sctp_association_init(asoc, ep, sk, scope, gfp)) in sctp_association_new() 1435 sctp_scope_t scope; in sctp_assoc_set_bind_addr_from_ep() local 1441 scope = sctp_scope(&asoc->peer.active_path->ipaddr); in sctp_assoc_set_bind_addr_from_ep() 1450 scope, gfp, flags); in sctp_assoc_set_bind_addr_from_ep()
|
D | sm_make_chunk.c | 1444 sctp_scope_t scope; in sctp_make_temp_asoc() local 1448 scope = sctp_scope(sctp_source(chunk)); in sctp_make_temp_asoc() 1449 asoc = sctp_association_new(ep, ep->base.sk, scope, gfp); in sctp_make_temp_asoc() 1575 sctp_scope_t scope; in sctp_unpack_cookie() local 1699 scope = sctp_scope(sctp_source(chunk)); in sctp_unpack_cookie() 1700 retval = sctp_association_new(ep, ep->base.sk, scope, gfp); in sctp_unpack_cookie() 2367 sctp_scope_t scope; in sctp_process_param() local 2390 scope = sctp_scope(peer_addr); in sctp_process_param() 2391 if (sctp_in_scope(&addr, scope)) in sctp_process_param()
|
D | ipv6.c | 307 sctp_scope_t scope; in sctp_v6_get_saddr() local 326 scope = sctp_scope(daddr); in sctp_v6_get_saddr() 339 (scope <= sctp_scope(&laddr->a))) { in sctp_v6_get_saddr() 1006 .scope = sctp_v6_scope,
|
D | protocol.c | 242 int sctp_copy_local_addr_list(struct sctp_bind_addr *bp, sctp_scope_t scope, in sctp_copy_local_addr_list() argument 252 if (sctp_in_scope(&addr->a, scope)) { in sctp_copy_local_addr_list() 984 .scope = sctp_v4_scope,
|
D | socket.c | 977 sctp_scope_t scope; in __sctp_connect() local 1077 scope = sctp_scope(&to); in __sctp_connect() 1078 asoc = sctp_association_new(ep, sk, scope, GFP_KERNEL); in __sctp_connect() 1439 sctp_scope_t scope; in sctp_sendmsg() local 1647 scope = sctp_scope(&to); in sctp_sendmsg() 1648 new_asoc = sctp_association_new(ep, sk, scope, GFP_KERNEL); in sctp_sendmsg()
|
/net/decnet/ |
D | dn_fib.c | 65 u8 scope; member 67 [RTN_UNSPEC] = { .error = 0, .scope = RT_SCOPE_NOWHERE }, 68 [RTN_UNICAST] = { .error = 0, .scope = RT_SCOPE_UNIVERSE }, 69 [RTN_LOCAL] = { .error = 0, .scope = RT_SCOPE_HOST }, 70 [RTN_BROADCAST] = { .error = -EINVAL, .scope = RT_SCOPE_NOWHERE }, 71 [RTN_ANYCAST] = { .error = -EINVAL, .scope = RT_SCOPE_NOWHERE }, 72 [RTN_MULTICAST] = { .error = -EINVAL, .scope = RT_SCOPE_NOWHERE }, 73 [RTN_BLACKHOLE] = { .error = -EINVAL, .scope = RT_SCOPE_UNIVERSE }, 74 [RTN_UNREACHABLE] = { .error = -EHOSTUNREACH, .scope = RT_SCOPE_UNIVERSE }, 75 [RTN_PROHIBIT] = { .error = -EACCES, .scope = RT_SCOPE_UNIVERSE }, [all …]
|
D | dn_route.c | 274 (fl1->nl_u.dn_u.scope ^ fl2->nl_u.dn_u.scope) | in compare_keys() 828 static __le16 dnet_select_source(const struct net_device *dev, __le16 daddr, int scope) in dnet_select_source() argument 838 if (ifa->ifa_scope > scope) in dnet_select_source() 857 return dnet_select_source(DN_FIB_RES_DEV(*res), DN_FIB_RES_GW(*res), res->scope); in __dn_fib_res_prefsrc() 871 .scope = RT_SCOPE_UNIVERSE, in dn_route_output_slow() 1219 .scope = RT_SCOPE_UNIVERSE, in dn_route_input_slow()
|
D | dn_table.c | 294 u32 tb_id, u8 type, u8 scope, void *dst, int dst_len, in dn_fib_dump_info() argument 310 rtm->rtm_scope = scope; in dn_fib_dump_info() 796 res->scope = f->fn_scope; in dn_fib_table_lookup()
|
/net/ipv4/ |
D | fib_semantics.c | 86 u8 scope; member 90 .scope = RT_SCOPE_NOWHERE, 94 .scope = RT_SCOPE_UNIVERSE, 98 .scope = RT_SCOPE_HOST, 102 .scope = RT_SCOPE_LINK, 106 .scope = RT_SCOPE_LINK, 110 .scope = RT_SCOPE_UNIVERSE, 114 .scope = RT_SCOPE_UNIVERSE, 118 .scope = RT_SCOPE_UNIVERSE, 122 .scope = RT_SCOPE_UNIVERSE, [all …]
|
D | devinet.c | 864 __be32 inet_select_addr(const struct net_device *dev, __be32 dst, int scope) in inet_select_addr() argument 876 if (ifa->ifa_scope > scope) in inet_select_addr() 903 ifa->ifa_scope <= scope) { in inet_select_addr() 917 __be32 local, int scope) in confirm_addr_indev() argument 925 ifa->ifa_scope <= scope) { in confirm_addr_indev() 940 if (ifa->ifa_scope <= scope) { in confirm_addr_indev() 961 __be32 dst, __be32 local, int scope) in inet_confirm_addr() argument 967 if (scope != RT_SCOPE_LINK) in inet_confirm_addr() 968 return confirm_addr_indev(in_dev, dst, local, scope); in inet_confirm_addr() 975 addr = confirm_addr_indev(in_dev, dst, local, scope); in inet_confirm_addr()
|
D | fib_lookup.h | 31 u32 tb_id, u8 type, u8 scope, __be32 dst,
|
D | arp.c | 385 int scope; in arp_ignore() local 392 scope = RT_SCOPE_HOST; in arp_ignore() 398 scope = RT_SCOPE_HOST; in arp_ignore() 402 scope = RT_SCOPE_LINK; in arp_ignore() 414 return !inet_confirm_addr(in_dev, sip, tip, scope); in arp_ignore()
|
D | fib_frontend.c | 825 .scope = frn->fl_scope } } }; in nl_fib_lookup() 842 frn->scope = res.scope; in nl_fib_lookup()
|
D | fib_hash.c | 303 if (fa->fa_scope != res->scope || in fn_hash_select_default()
|
D | route.c | 2064 .scope = RT_SCOPE_UNIVERSE, in ip_route_input_slow() 2461 .scope = ((tos & RTO_ONLINK) ? in ip_route_output_slow()
|
/net/tipc/ |
D | name_table.h | 75 u32 scope; member 94 int tipc_nametbl_publish_rsv(u32 ref, unsigned int scope, 97 u32 scope, u32 port_ref, u32 key); 100 u32 scope, u32 node, u32 ref, u32 key);
|
D | name_table.c | 127 u32 scope, u32 node, u32 port_ref, in publ_create() argument 139 publ->scope = scope; in publ_create() 250 u32 scope, u32 node, u32 port, u32 key) in tipc_nameseq_insert_publ() argument 324 publ = publ_create(type, lower, upper, scope, node, port, key); in tipc_nameseq_insert_publ() 572 u32 scope, u32 node, u32 port, u32 key) in tipc_nametbl_insert_publ() argument 592 scope, node, port, key); in tipc_nametbl_insert_publ() 732 if (publ->scope <= limit) in tipc_nametbl_mc_translate() 752 int tipc_nametbl_publish_rsv(u32 ref, unsigned int scope, in tipc_nametbl_publish_rsv() argument 758 res = tipc_publish(ref, scope, seq); in tipc_nametbl_publish_rsv() 768 u32 scope, u32 port_ref, u32 key) in tipc_nametbl_publish() argument [all …]
|
D | port.c | 1109 int tipc_publish(u32 ref, unsigned int scope, struct tipc_name_seq const *seq) in tipc_publish() argument 1122 ref, p_ptr, p_ptr->publ.connected, scope, seq->lower, seq->upper); in tipc_publish() 1127 if ((scope < TIPC_ZONE_SCOPE) || (scope > TIPC_NODE_SCOPE)) in tipc_publish() 1135 scope, p_ptr->publ.ref, key); in tipc_publish() 1147 int tipc_withdraw(u32 ref, unsigned int scope, struct tipc_name_seq const *seq) in tipc_withdraw() argument 1167 if (publ->scope != scope) in tipc_withdraw()
|
D | socket.c | 371 return (addr->scope > 0) ? in bind() 372 tipc_publish(portref, addr->scope, &addr->addr.nameseq) : in bind() 373 tipc_withdraw(portref, -addr->scope, &addr->addr.nameseq); in bind() 409 addr->scope = 0; in get_name() 805 addr->scope = 0; /* could leave uninitialized */ in set_orig_addr()
|
/net/x25/ |
D | Kconfig | 9 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,
|