Lines Matching full: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, in sctp_bind_addr_copy() argument
54 /* Extract the addresses which are relevant for this scope. */ in sctp_bind_addr_copy()
56 error = sctp_copy_one_addr(net, dest, &addr->a, scope, in sctp_bind_addr_copy()
62 /* If there are no addresses matching the scope and in sctp_bind_addr_copy()
63 * this is global scope, try to get a link scope address, with in sctp_bind_addr_copy()
66 if (list_empty(&dest->address_list) && (SCTP_SCOPE_GLOBAL == scope)) { in sctp_bind_addr_copy()
77 * scope, it's an error. 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()
468 /* Now that the address is in scope, check to see if in sctp_copy_one_addr()
504 /* Is 'addr' valid for 'scope'? */
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()
536 if (addr_scope <= scope || SCTP_SCOPE_LINK == addr_scope) in sctp_in_scope()
565 /* What is the scope of 'addr'? */
574 return af->scope((union sctp_addr *)addr); in sctp_scope()