Home
last modified time | relevance | path

Searched refs:scope (Results 1 – 25 of 29) sorted by relevance

12

/net/sctp/
Dbind_addr.c34 union sctp_addr *addr, enum sctp_scope scope,
45 enum sctp_scope scope, gfp_t gfp, in sctp_bind_addr_copy() argument
56 error = sctp_copy_one_addr(net, dest, &addr->a, scope, in sctp_bind_addr_copy()
66 if (list_empty(&dest->address_list) && (SCTP_SCOPE_GLOBAL == scope)) { in sctp_bind_addr_copy()
460 union sctp_addr *addr, enum sctp_scope scope, in sctp_copy_one_addr() argument
466 error = sctp_copy_local_addr_list(net, dest, scope, gfp, flags); in sctp_copy_one_addr()
467 } else if (sctp_in_scope(net, addr, scope)) { in sctp_copy_one_addr()
506 enum sctp_scope scope) in sctp_in_scope() argument
528 if (addr_scope <= scope) in sctp_in_scope()
532 if (addr_scope <= scope || SCTP_SCOPE_PRIVATE == addr_scope) in sctp_in_scope()
[all …]
Dassociola.c55 enum sctp_scope scope, gfp_t gfp) in sctp_association_init() argument
289 enum sctp_scope scope, gfp_t gfp) in sctp_association_new() argument
297 if (!sctp_association_init(asoc, ep, sk, scope, gfp)) in sctp_association_new()
1574 enum sctp_scope scope, gfp_t gfp) in sctp_assoc_set_bind_addr_from_ep() argument
1593 scope, gfp, flags); in sctp_assoc_set_bind_addr_from_ep()
Dipv6.c287 enum sctp_scope scope; in sctp_v6_get_dst() local
335 scope = sctp_scope(daddr); in sctp_v6_get_dst()
379 scope > sctp_scope(&laddr->a)) in sctp_v6_get_dst()
1131 .scope = sctp_v6_scope,
Dsm_make_chunk.c1633 enum sctp_scope scope; in sctp_make_temp_asoc() local
1637 scope = sctp_scope(sctp_source(chunk)); in sctp_make_temp_asoc()
1638 asoc = sctp_association_new(ep, ep->base.sk, scope, gfp); in sctp_make_temp_asoc()
1752 enum sctp_scope scope; in sctp_unpack_cookie() local
1860 scope = sctp_scope(sctp_source(chunk)); in sctp_unpack_cookie()
1861 retval = sctp_association_new(ep, ep->base.sk, scope, gfp); in sctp_unpack_cookie()
2549 enum sctp_scope scope; in sctp_process_param() local
2574 scope = sctp_scope(peer_addr); in sctp_process_param()
2575 if (sctp_in_scope(net, &addr, scope)) in sctp_process_param()
Dprotocol.c134 enum sctp_scope scope, gfp_t gfp, int copy_flags) in sctp_copy_local_addr_list() argument
144 if (!sctp_in_scope(net, &addr->a, scope)) in sctp_copy_local_addr_list()
1184 .scope = sctp_v4_scope,
/net/netfilter/
Dnf_nat_redirect.c83 static bool nf_nat_redirect_ipv6_usable(const struct inet6_ifaddr *ifa, unsigned int scope) in nf_nat_redirect_ipv6_usable() argument
93 if (scope) { in nf_nat_redirect_ipv6_usable()
96 if (!(scope & ifa_scope)) in nf_nat_redirect_ipv6_usable()
112 unsigned int scope = ipv6_addr_scope(&ipv6_hdr(skb)->daddr); in nf_nat_redirect_ipv6() local
122 if (!nf_nat_redirect_ipv6_usable(ifa, scope)) in nf_nat_redirect_ipv6()
/net/tipc/
Daddr.h53 signed char scope; member
64 static inline void tipc_uaddr(struct tipc_uaddr *ua, u32 atype, u32 scope, in tipc_uaddr() argument
69 ua->scope = scope; in tipc_uaddr()
Dname_table.c240 p->scope = ua->scope; in tipc_publ_create()
652 if (p->scope != ua->scope) in tipc_nametbl_lookup_group()
681 u8 scope = ua->scope; in tipc_nametbl_lookup_mcast_sockets() local
691 if (scope == p->scope || scope == TIPC_ANY_SCOPE) in tipc_nametbl_lookup_mcast_sockets()
747 if (p->scope != ua->scope) in tipc_nametbl_build_group()
1001 if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_SCOPE, p->scope)) in __tipc_nl_add_nametable_publ()
Dgroup.c90 u32 scope; member
168 bool global = mreq->scope != TIPC_NODE_SCOPE; in tipc_group_create()
184 grp->scope = mreq->scope; in tipc_group_create()
364 int *scope) in tipc_group_self() argument
369 *scope = grp->scope; in tipc_group_self()
753 if (grp->scope == TIPC_NODE_SCOPE && node != tipc_own_addr(grp->net)) in tipc_group_proto_rcv()
941 if (grp->scope == TIPC_NODE_SCOPE) in tipc_group_fill_sock_diag()
945 if (grp->scope == TIPC_CLUSTER_SCOPE) in tipc_group_fill_sock_diag()
Dsocket.c689 if (ua->scope < 0) { in __tipc_bind()
691 ua->scope = -ua->scope; in __tipc_bind()
694 if (ua->scope != TIPC_NODE_SCOPE) in __tipc_bind()
695 ua->scope = TIPC_CLUSTER_SCOPE; in __tipc_bind()
767 addr->scope = 0; in tipc_getname()
1021 ua->scope = msg_lookup_scope(hdr); in tipc_send_group_anycast()
1171 ua->scope = msg_lookup_scope(hdr); in tipc_send_group_mcast()
1222 ua.scope = TIPC_ANY_SCOPE; in tipc_sk_mcast_rcv()
1224 ua.scope = TIPC_CLUSTER_SCOPE; in tipc_sk_mcast_rcv()
1241 ua.scope = msg_lookup_scope(hdr); in tipc_sk_mcast_rcv()
[all …]
Dsubscr.c97 if (filter & TIPC_SUB_CLUSTER_SCOPE && p->scope == TIPC_NODE_SCOPE) in tipc_sub_report_overlap()
99 if (filter & TIPC_SUB_NODE_SCOPE && p->scope != TIPC_NODE_SCOPE) in tipc_sub_report_overlap()
Dname_distr.c102 if (p->scope == TIPC_NODE_SCOPE) { in tipc_named_publish()
135 if (p->scope == TIPC_NODE_SCOPE) in tipc_named_withdraw()
249 tipc_uaddr(&ua, TIPC_SERVICE_RANGE, p->scope, p->sr.type, in tipc_publ_purge()
Dgroup.h55 int *scope);
Dname_table.h80 u16 scope; member
Dmsg.c700 u32 scope = msg_lookup_scope(msg); in tipc_msg_lookup_dest() local
718 tipc_uaddr(&ua, TIPC_SERVICE_RANGE, scope, in tipc_msg_lookup_dest()
720 sk.node = tipc_scope2node(net, scope); in tipc_msg_lookup_dest()
Dtopsrv.c535 saddr.scope = TIPC_NODE_SCOPE; in tipc_topsrv_create_listener()
/net/ipv4/
Dfib_semantics.c100 .scope = RT_SCOPE_NOWHERE,
104 .scope = RT_SCOPE_UNIVERSE,
108 .scope = RT_SCOPE_HOST,
112 .scope = RT_SCOPE_LINK,
116 .scope = RT_SCOPE_LINK,
120 .scope = RT_SCOPE_UNIVERSE,
124 .scope = RT_SCOPE_UNIVERSE,
128 .scope = RT_SCOPE_UNIVERSE,
132 .scope = RT_SCOPE_UNIVERSE,
136 .scope = RT_SCOPE_UNIVERSE,
[all …]
Ddevinet.c1285 int scope) in in_dev_select_addr() argument
1293 ifa->ifa_scope <= scope) in in_dev_select_addr()
1300 __be32 inet_select_addr(const struct net_device *dev, __be32 dst, int scope) in inet_select_addr() argument
1320 if (min(ifa->ifa_scope, localnet_scope) > scope) in inet_select_addr()
1343 addr = in_dev_select_addr(in_dev, scope); in inet_select_addr()
1360 addr = in_dev_select_addr(in_dev, scope); in inet_select_addr()
1371 __be32 local, int scope) in confirm_addr_indev() argument
1386 min_scope <= scope) { in confirm_addr_indev()
1401 if (min_scope <= scope) { in confirm_addr_indev()
1423 __be32 dst, __be32 local, int scope) in inet_confirm_addr() argument
[all …]
Dfib_frontend.c277 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()
1355 frn->scope = res.scope; in nl_fib_lookup()
Dfib_lookup.h57 u8 scope; member
Darp.c398 int scope; in arp_ignore() local
405 scope = RT_SCOPE_HOST; in arp_ignore()
411 scope = RT_SCOPE_HOST; in arp_ignore()
415 scope = RT_SCOPE_LINK; in arp_ignore()
428 return !inet_confirm_addr(net, in_dev, sip, tip, scope); in arp_ignore()
Dnexthop.c1326 static int nexthop_check_scope(struct nh_info *nhi, u8 scope, in nexthop_check_scope() argument
1329 if (scope == RT_SCOPE_HOST && nhi->fib_nhc.nhc_gw_family) { in nexthop_check_scope()
1335 if (nhi->fib_nhc.nhc_flags & RTNH_F_ONLINK && scope >= RT_SCOPE_LINK) { in nexthop_check_scope()
1347 int fib_check_nexthop(struct nexthop *nh, u8 scope, in fib_check_nexthop() argument
1363 if (scope == RT_SCOPE_HOST) { in fib_check_nexthop()
1371 err = nexthop_check_scope(nhi, scope, extack); in fib_check_nexthop()
1379 err = nexthop_check_scope(nhi, scope, extack); in fib_check_nexthop()
/net/ipv6/
Daddrconf_core.c20 #define IPV6_ADDR_SCOPE_TYPE(scope) ((scope) << 16) argument
22 static inline unsigned int ipv6_addr_scope2type(unsigned int scope) in ipv6_addr_scope2type() argument
24 switch (scope) { in ipv6_addr_scope2type()
35 return IPV6_ADDR_SCOPE_TYPE(scope); in ipv6_addr_scope2type()
Daddrconf.c1124 ifa->scope = cfg->scope; in ipv6_add_addr()
1420 cfg.scope = ipv6_addr_scope(cfg.pfx); in ipv6_create_tempaddr()
1478 int scope; member
1575 if (ret >= dst->scope) in ipv6_get_saddr_eval()
1766 dst.scope = __ipv6_addr_src_scope(dst_type); in ipv6_dev_get_saddr()
1794 dst.scope <= IPV6_ADDR_SCOPE_LINKLOCAL || in ipv6_dev_get_saddr()
1855 if (ifp->scope > IFA_LINK) in __ipv6_get_lladdr()
1857 if (ifp->scope == IFA_LINK && in __ipv6_get_lladdr()
1946 !(ifp->scope&(IFA_LINK|IFA_HOST) || strict))) { in __ipv6_chk_addr_and_flags()
2041 !(ifp->scope&(IFA_LINK|IFA_HOST) || strict)) { in ipv6_get_ifaddr()
[all …]
/net/x25/
DKconfig9 X.25 is a set of standardized network protocols, similar in scope to

12