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.
460 union sctp_addr *addr, enum sctp_scope scope,
466 error = sctp_copy_local_addr_list(net, dest, scope, gfp, flags);
467 } else if (sctp_in_scope(net, addr, scope)) {
468 /* Now that the address is in scope, check to see if
504 /* Is 'addr' valid for 'scope'? */
506 enum sctp_scope scope)
528 if (addr_scope <= scope)
532 if (addr_scope <= scope || SCTP_SCOPE_PRIVATE == addr_scope)
536 if (addr_scope <= scope || SCTP_SCOPE_LINK == addr_scope)
565 /* What is the scope of 'addr'? */
574 return af->scope((union sctp_addr *)addr);