Searched refs:scope (Results 1 - 24 of 24) sorted by relevance

/net/tipc/
H A Dname_table.h55 * @scope: scope of publication
62 * @node_list: adjacent matching name seq publications with >= node scope
63 * @cluster_list: adjacent matching name seq publications with >= cluster scope
64 * @zone_list: adjacent matching name seq publications with >= zone scope
72 u32 scope; member in struct:publication
92 u32 scope, u32 port_ref, u32 key);
95 u32 scope, u32 node, u32 ref,
H A Dname_distr.c149 list_add_tail(&publ->local_list, &publ_lists[publ->scope]->list);
150 publ_lists[publ->scope]->size++;
152 if (publ->scope == TIPC_NODE_SCOPE)
175 publ_lists[publ->scope]->size--;
177 if (publ->scope == TIPC_NODE_SCOPE)
394 int scope; local
398 for (scope = TIPC_ZONE_SCOPE; scope <= TIPC_NODE_SCOPE; scope++)
399 list_for_each_entry(publ, &publ_lists[scope]
[all...]
H A Dname_table.c123 u32 scope, u32 node, u32 port_ref,
135 publ->scope = scope;
250 u32 scope, u32 node, u32 port, u32 key)
328 publ = publ_create(type, lower, upper, scope, node, port, key);
393 /* Remove publication from zone scope list */
397 /* Remove publication from cluster scope list, if present */
403 /* Remove publication from node scope list, if present */
482 u32 scope, u32 node, u32 port, u32 key)
486 if ((scope < TIPC_ZONE_SCOP
122 publ_create(u32 type, u32 lower, u32 upper, u32 scope, u32 node, u32 port_ref, u32 key) argument
248 tipc_nameseq_insert_publ(struct name_seq *nseq, u32 type, u32 lower, u32 upper, u32 scope, u32 node, u32 port, u32 key) argument
481 tipc_nametbl_insert_publ(u32 type, u32 lower, u32 upper, u32 scope, u32 node, u32 port, u32 key) argument
658 tipc_nametbl_publish(u32 type, u32 lower, u32 upper, u32 scope, u32 port_ref, u32 key) argument
[all...]
H A Dsocket.c107 static int tipc_sk_publish(struct tipc_sock *tsk, uint scope,
109 static int tipc_sk_withdraw(struct tipc_sock *tsk, uint scope,
525 * Name and name sequence binding is indicated using a positive scope value;
526 * a negative scope value unbinds the specified name. Specifying no name
571 res = (addr->scope > 0) ?
572 tipc_sk_publish(tsk, addr->scope, &addr->addr.nameseq) :
573 tipc_sk_withdraw(tsk, -addr->scope, &addr->addr.nameseq);
613 addr->scope = 0;
753 u32 scope = TIPC_CLUSTER_SCOPE; local
756 scope
762 scope, local
2152 tipc_sk_publish(struct tipc_sock *tsk, uint scope, struct tipc_name_seq const *seq) argument
2175 tipc_sk_withdraw(struct tipc_sock *tsk, uint scope, struct tipc_name_seq const *seq) argument
[all...]
H A Dsubscr.c66 .scope = TIPC_NODE_SCOPE
/net/ipv6/
H A Daddrconf_core.c18 #define IPV6_ADDR_SCOPE_TYPE(scope) ((scope) << 16)
20 static inline unsigned int ipv6_addr_scope2type(unsigned int scope) argument
22 switch (scope) {
33 return IPV6_ADDR_SCOPE_TYPE(scope);
H A Daddrconf.c37 * selection; consider scope,
786 * Each device address list is sorted in order of scope -
809 int scope, u32 flags, u32 valid_lft, u32 prefered_lft)
867 ifa->scope = scope;
1195 int scope; member in struct:ipv6_saddr_dst
1247 /* Rule 2: Prefer appropriate scope
1252 * ---+--+-+---> scope
1254 * | d is scope of the destination.
1256 * | \ <- smaller scope i
807 ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, const struct in6_addr *peer_addr, int pfxlen, int scope, u32 flags, u32 valid_lft, u32 prefered_lft) argument
2532 int scope; local
2678 add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int plen, int scope) argument
2701 int scope, plen; local
4021 put_ifaddrmsg(struct nlmsghdr *nlh, u8 prefixlen, u32 flags, u8 scope, int ifindex) argument
4128 u8 scope = RT_SCOPE_UNIVERSE; local
4153 u8 scope = RT_SCOPE_UNIVERSE; local
[all...]
/net/sctp/
H A Dbind_addr.c49 union sctp_addr *, sctp_scope_t scope, gfp_t gfp,
55 /* Copy 'src' to 'dest' taking 'scope' into account. Omit addresses
56 * in 'src' which have a broader scope than 'scope'.
60 sctp_scope_t scope, gfp_t gfp,
69 /* Extract the addresses which are relevant for this scope. */
71 error = sctp_copy_one_addr(net, dest, &addr->a, scope,
77 /* If there are no addresses matching the scope and
78 * this is global scope, try to get a link scope addres
58 sctp_bind_addr_copy(struct net *net, struct sctp_bind_addr *dest, const struct sctp_bind_addr *src, sctp_scope_t scope, gfp_t gfp, int flags) argument
437 sctp_copy_one_addr(struct net *net, struct sctp_bind_addr *dest, union sctp_addr *addr, sctp_scope_t scope, gfp_t gfp, int flags) argument
483 sctp_in_scope(struct net *net, const union sctp_addr *addr, sctp_scope_t scope) argument
[all...]
H A Dipv6.c244 sctp_scope_t scope; local
271 scope = sctp_scope(daddr);
311 (scope <= sctp_scope(&laddr->a))) {
601 /* What is the scope of 'addr'? */
607 /* The IPv6 scope is really a set of bit fields.
608 * See IFA_* in <net/if_inet6.h>. Map to a generic SCTP scope.
988 .scope = sctp_v6_scope,
H A Dassociola.c69 sctp_scope_t scope,
297 sctp_scope_t scope,
306 if (!sctp_association_init(asoc, ep, sk, scope, gfp))
1544 sctp_scope_t scope, gfp_t gfp)
1560 scope, gfp, flags);
66 sctp_association_init(struct sctp_association *asoc, const struct sctp_endpoint *ep, const struct sock *sk, sctp_scope_t scope, gfp_t gfp) argument
295 sctp_association_new(const struct sctp_endpoint *ep, const struct sock *sk, sctp_scope_t scope, gfp_t gfp) argument
1543 sctp_assoc_set_bind_addr_from_ep(struct sctp_association *asoc, sctp_scope_t scope, gfp_t gfp) argument
H A Dsm_make_chunk.c1575 sctp_scope_t scope; local
1579 scope = sctp_scope(sctp_source(chunk));
1580 asoc = sctp_association_new(ep, ep->base.sk, scope, gfp);
1702 sctp_scope_t scope; local
1811 scope = sctp_scope(sctp_source(chunk));
1812 retval = sctp_association_new(ep, ep->base.sk, scope, gfp);
2496 sctp_scope_t scope; local
2520 scope = sctp_scope(peer_addr);
2521 if (sctp_in_scope(net, &addr, scope))
2827 /* reuse the parameter length from the same scope on
[all...]
H A Dprotocol.c195 /* Copy the local addresses which are valid for 'scope' into 'bp'. */
197 sctp_scope_t scope, gfp_t gfp, int copy_flags)
206 if (sctp_in_scope(net, &addr->a, scope)) {
207 /* Now that the address is in scope, check to see if
1059 .scope = sctp_v4_scope,
196 sctp_copy_local_addr_list(struct net *net, struct sctp_bind_addr *bp, sctp_scope_t scope, gfp_t gfp, int copy_flags) argument
H A Dsocket.c1056 sctp_scope_t scope; local
1165 scope = sctp_scope(&to);
1166 asoc = sctp_association_new(ep, sk, scope, GFP_KERNEL);
1172 err = sctp_assoc_set_bind_addr_from_ep(asoc, scope,
1605 sctp_scope_t scope; local
1826 scope = sctp_scope(&to);
1827 new_asoc = sctp_association_new(ep, sk, scope, GFP_KERNEL);
1833 err = sctp_assoc_set_bind_addr_from_ep(asoc, scope, GFP_KERNEL);
/net/decnet/
H A Ddn_fib.c66 u8 scope; member in struct:__anon38
68 [RTN_UNSPEC] = { .error = 0, .scope = RT_SCOPE_NOWHERE },
69 [RTN_UNICAST] = { .error = 0, .scope = RT_SCOPE_UNIVERSE },
70 [RTN_LOCAL] = { .error = 0, .scope = RT_SCOPE_HOST },
71 [RTN_BROADCAST] = { .error = -EINVAL, .scope = RT_SCOPE_NOWHERE },
72 [RTN_ANYCAST] = { .error = -EINVAL, .scope = RT_SCOPE_NOWHERE },
73 [RTN_MULTICAST] = { .error = -EINVAL, .scope = RT_SCOPE_NOWHERE },
74 [RTN_BLACKHOLE] = { .error = -EINVAL, .scope = RT_SCOPE_UNIVERSE },
75 [RTN_UNREACHABLE] = { .error = -EHOSTUNREACH, .scope = RT_SCOPE_UNIVERSE },
76 [RTN_PROHIBIT] = { .error = -EACCES, .scope
691 int scope = RT_SCOPE_NOWHERE; local
[all...]
H A Ddn_table.c298 u32 tb_id, u8 type, u8 scope, void *dst, int dst_len,
315 rtm->rtm_scope = scope;
815 res->scope = f->fn_scope;
297 dn_fib_dump_info(struct sk_buff *skb, u32 portid, u32 seq, int event, u32 tb_id, u8 type, u8 scope, void *dst, int dst_len, struct dn_fib_info *fi, unsigned int flags) argument
H A Ddn_route.c928 static __le16 dnet_select_source(const struct net_device *dev, __le16 daddr, int scope) argument
941 if (ifa->ifa_scope > scope)
960 return dnet_select_source(DN_FIB_RES_DEV(*res), DN_FIB_RES_GW(*res), res->scope);
/net/ipv4/
H A Dfib_lookup.h46 u8 scope; member in struct:fib_prop
H A Dfib_semantics.c95 .scope = RT_SCOPE_NOWHERE,
99 .scope = RT_SCOPE_UNIVERSE,
103 .scope = RT_SCOPE_HOST,
107 .scope = RT_SCOPE_LINK,
111 .scope = RT_SCOPE_LINK,
115 .scope = RT_SCOPE_UNIVERSE,
119 .scope = RT_SCOPE_UNIVERSE,
123 .scope = RT_SCOPE_UNIVERSE,
127 .scope = RT_SCOPE_UNIVERSE,
131 .scope
1121 int scope = RT_SCOPE_NOWHERE; local
[all...]
H A Dfib_frontend.c204 int scope; local
216 scope = RT_SCOPE_UNIVERSE;
223 fl4.flowi4_scope = scope;
228 scope = RT_SCOPE_LINK;
231 return inet_select_addr(dev, ip_hdr(skb)->saddr, scope);
945 frn->scope = res.scope;
H A Darp.c385 int scope; local
392 scope = RT_SCOPE_HOST;
398 scope = RT_SCOPE_HOST;
400 case 3: /* Do not reply for scope host addresses */
402 scope = RT_SCOPE_LINK;
415 return !inet_confirm_addr(net, in_dev, sip, tip, scope);
H A Ddevinet.c1168 __be32 inet_select_addr(const struct net_device *dev, __be32 dst, int scope) argument
1180 if (ifa->ifa_scope > scope)
1205 ifa->ifa_scope <= scope) {
1218 __be32 local, int scope)
1226 ifa->ifa_scope <= scope) {
1241 if (ifa->ifa_scope <= scope) {
1260 * - scope: maximum allowed scope value for the local address
1263 __be32 dst, __be32 local, int scope)
1269 return confirm_addr_indev(in_dev, dst, local, scope);
1217 confirm_addr_indev(struct in_device *in_dev, __be32 dst, __be32 local, int scope) argument
1262 inet_confirm_addr(struct net *net, struct in_device *in_dev, __be32 dst, __be32 local, int scope) argument
[all...]
H A Dfib_trie.c1224 * 1. Find exact match for type, scope, fib_info to avoid
1277 * uses the same scope, type, and nexthop
1379 res->scope = fa->fa_info->fib_scope;
2309 snprintf(buf, len, "scope=%d", s);
/net/x25/
H A DKconfig8 X.25 is a set of standardized network protocols, similar in scope to
/net/core/
H A Dpktgen.c2125 if ((ifp->scope & IFA_LINK) &&

Completed in 470 milliseconds