Lines Matching defs:scope
34 union sctp_addr *addr, enum sctp_scope scope,
40 /* Copy 'src' to 'dest' taking 'scope' into account. Omit addresses
41 * in 'src' which have a broader scope than 'scope'.
45 enum sctp_scope scope, gfp_t gfp,
54 /* Extract the addresses which are relevant for this scope. */
56 error = sctp_copy_one_addr(net, dest, &addr->a, scope,
62 /* If there are no addresses matching the scope and
63 * this is global scope, try to get a link scope address, with
66 if (list_empty(&dest->address_list) && (SCTP_SCOPE_GLOBAL == scope)) {
77 * scope, it's an error.
469 union sctp_addr *addr, enum sctp_scope scope,
475 error = sctp_copy_local_addr_list(net, dest, scope, gfp, flags);
476 } else if (sctp_in_scope(net, addr, scope)) {
477 /* Now that the address is in scope, check to see if
513 /* Is 'addr' valid for 'scope'? */
515 enum sctp_scope scope)
537 if (addr_scope <= scope)
541 if (addr_scope <= scope || SCTP_SCOPE_PRIVATE == addr_scope)
545 if (addr_scope <= scope || SCTP_SCOPE_LINK == addr_scope)
574 /* What is the scope of 'addr'? */
583 return af->scope((union sctp_addr *)addr);