Searched defs:scope (Results 1 - 20 of 20) sorted by relevance

/net/ipv6/
H A Daddrconf_core.c9 #define IPV6_ADDR_SCOPE_TYPE(scope) ((scope) << 16)
11 static inline unsigned int ipv6_addr_scope2type(unsigned int scope) argument
13 switch (scope) {
24 return IPV6_ADDR_SCOPE_TYPE(scope);
H A Daddrconf.c37 * selection; consider scope,
802 * Each device address list is sorted in order of scope -
824 int scope, u32 flags)
879 ifa->scope = scope;
1197 int scope; member in struct:ipv6_saddr_dst
1249 /* Rule 2: Prefer appropriate scope
1254 * ---+--+-+---> scope
1256 * | d is scope of the destination.
1258 * | \ <- smaller scope i
823 ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen, int scope, u32 flags) argument
2475 int scope; local
2618 add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int plen, int scope) argument
2639 int scope; local
3842 put_ifaddrmsg(struct nlmsghdr *nlh, u8 prefixlen, u8 flags, u8 scope, int ifindex) argument
3934 u8 scope = RT_SCOPE_UNIVERSE; local
3959 u8 scope = RT_SCOPE_UNIVERSE; local
[all...]
/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, u32 key);
H A Dname_distr.c156 list_add_tail(&publ->local_list, &publ_lists[publ->scope]->list);
157 publ_lists[publ->scope]->size++;
159 if (publ->scope == TIPC_NODE_SCOPE)
182 publ_lists[publ->scope]->size--;
184 if (publ->scope == TIPC_NODE_SCOPE)
358 int scope; local
362 for (scope = TIPC_ZONE_SCOPE; scope <= TIPC_NODE_SCOPE; scope++)
363 list_for_each_entry(publ, &publ_lists[scope]
[all...]
H A Dname_table.c124 u32 scope, u32 node, u32 port_ref,
136 publ->scope = scope;
252 u32 scope, u32 node, u32 port, u32 key)
334 publ = publ_create(type, lower, upper, scope, node, port, key);
399 /* Remove publication from zone scope list */
403 /* Remove publication from cluster scope list, if present */
409 /* Remove publication from node scope list, if present */
488 u32 scope, u32 node, u32 port, u32 key)
492 if ((scope < TIPC_ZONE_SCOP
123 publ_create(u32 type, u32 lower, u32 upper, u32 scope, u32 node, u32 port_ref, u32 key) argument
250 tipc_nameseq_insert_publ(struct name_seq *nseq, u32 type, u32 lower, u32 upper, u32 scope, u32 node, u32 port, u32 key) argument
487 tipc_nametbl_insert_publ(u32 type, u32 lower, u32 upper, u32 scope, u32 node, u32 port, u32 key) argument
664 tipc_nametbl_publish(u32 type, u32 lower, u32 upper, u32 scope, u32 port_ref, u32 key) argument
[all...]
H A Dport.c968 int tipc_publish(u32 ref, unsigned int scope, struct tipc_name_seq const *seq) argument
987 scope, p_ptr->ref, key);
999 int tipc_withdraw(u32 ref, unsigned int scope, struct tipc_name_seq const *seq) argument
1019 if (publ->scope != scope)
/net/ipv4/
H A Dfib_lookup.h52 u8 scope; member in struct:fib_prop
H A Darp.c384 int scope; local
391 scope = RT_SCOPE_HOST;
397 scope = RT_SCOPE_HOST;
399 case 3: /* Do not reply for scope host addresses */
401 scope = RT_SCOPE_LINK;
413 return !inet_confirm_addr(in_dev, sip, tip, scope);
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);
944 frn->scope = res.scope;
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
1117 int scope = RT_SCOPE_NOWHERE; local
[all...]
H A Ddevinet.c1153 __be32 inet_select_addr(const struct net_device *dev, __be32 dst, int scope) argument
1165 if (ifa->ifa_scope > scope)
1190 ifa->ifa_scope <= scope) {
1203 __be32 local, int scope)
1211 ifa->ifa_scope <= scope) {
1226 if (ifa->ifa_scope <= scope) {
1244 * - scope: maximum allowed scope value for the local address
1247 __be32 dst, __be32 local, int scope)
1253 if (scope !
1202 confirm_addr_indev(struct in_device *in_dev, __be32 dst, __be32 local, int scope) argument
1246 inet_confirm_addr(struct in_device *in_dev, __be32 dst, __be32 local, int scope) argument
[all...]
/net/sctp/
H A Dbind_addr.c56 union sctp_addr *, sctp_scope_t scope, gfp_t gfp,
62 /* Copy 'src' to 'dest' taking 'scope' into account. Omit addresses
63 * in 'src' which have a broader scope than 'scope'.
67 sctp_scope_t scope, gfp_t gfp,
76 /* Extract the addresses which are relevant for this scope. */
78 error = sctp_copy_one_addr(net, dest, &addr->a, scope,
84 /* If there are no addresses matching the scope and
85 * this is global scope, try to get a link scope addres
65 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
444 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
490 sctp_in_scope(struct net *net, const union sctp_addr *addr, sctp_scope_t scope) argument
[all...]
H A Dassociola.c75 sctp_scope_t scope,
354 sctp_scope_t scope,
363 if (!sctp_association_init(asoc, ep, sk, scope, gfp))
1534 sctp_scope_t scope, gfp_t gfp)
1550 scope, gfp, flags);
72 sctp_association_init(struct sctp_association *asoc, const struct sctp_endpoint *ep, const struct sock *sk, sctp_scope_t scope, gfp_t gfp) argument
352 sctp_association_new(const struct sctp_endpoint *ep, const struct sock *sk, sctp_scope_t scope, gfp_t gfp) argument
1533 sctp_assoc_set_bind_addr_from_ep(struct sctp_association *asoc, sctp_scope_t scope, gfp_t gfp) argument
H A Dipv6.c270 sctp_scope_t scope; local
295 scope = sctp_scope(daddr);
333 (scope <= sctp_scope(&laddr->a))) {
622 /* What is the scope of 'addr'? */
628 /* The IPv6 scope is really a set of bit fields.
629 * See IFA_* in <net/if_inet6.h>. Map to a generic SCTP scope.
999 .scope = sctp_v6_scope,
H A Dprotocol.c202 /* Copy the local addresses which are valid for 'scope' into 'bp'. */
204 sctp_scope_t scope, gfp_t gfp, int copy_flags)
213 if (sctp_in_scope(net, &addr->a, scope)) {
214 /* Now that the address is in scope, check to see if
1059 .scope = sctp_v4_scope,
203 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 Dsm_make_chunk.c1556 sctp_scope_t scope; local
1560 scope = sctp_scope(sctp_source(chunk));
1561 asoc = sctp_association_new(ep, ep->base.sk, scope, gfp);
1683 sctp_scope_t scope; local
1794 scope = sctp_scope(sctp_source(chunk));
1795 retval = sctp_association_new(ep, ep->base.sk, scope, gfp);
2481 sctp_scope_t scope; local
2504 scope = sctp_scope(peer_addr);
2505 if (sctp_in_scope(net, &addr, scope))
2809 /* reuse the parameter length from the same scope on
[all...]
H A Dsocket.c1067 sctp_scope_t scope; local
1174 scope = sctp_scope(&to);
1175 asoc = sctp_association_new(ep, sk, scope, GFP_KERNEL);
1181 err = sctp_assoc_set_bind_addr_from_ep(asoc, scope,
1595 sctp_scope_t scope; local
1803 scope = sctp_scope(&to);
1804 new_asoc = sctp_association_new(ep, sk, scope, GFP_KERNEL);
1810 err = sctp_assoc_set_bind_addr_from_ep(asoc, scope, GFP_KERNEL);
/net/decnet/
H A Ddn_fib.c66 u8 scope; member in struct:__anon40
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.c916 static __le16 dnet_select_source(const struct net_device *dev, __le16 daddr, int scope) argument
929 if (ifa->ifa_scope > scope)
948 return dnet_select_source(DN_FIB_RES_DEV(*res), DN_FIB_RES_GW(*res), res->scope);

Completed in 180 milliseconds