Lines Matching defs:scope
140 static int tipc_sk_publish(struct tipc_sock *tsk, uint scope,
142 static int tipc_sk_withdraw(struct tipc_sock *tsk, uint scope,
654 * Name and name sequence binding is indicated using a positive scope value;
655 * a negative scope value unbinds the specified name. Specifying no name
703 res = (addr->scope >= 0) ?
704 tipc_sk_publish(tsk, addr->scope, &addr->addr.nameseq) :
705 tipc_sk_withdraw(tsk, -addr->scope, &addr->addr.nameseq);
744 addr->scope = 0;
993 u32 type, inst, scope;
1002 scope = msg_lookup_scope(hdr);
1011 if (!tipc_nametbl_lookup(net, type, inst, scope, &dsts,
1147 u32 type, inst, scope, exclude;
1155 scope = msg_lookup_scope(hdr);
1158 if (!tipc_nametbl_lookup(net, type, inst, scope, &dsts,
1182 u32 type, lower, upper, scope;
1214 /* Group messages require exact scope match */
1218 scope = msg_lookup_scope(hdr);
1221 /* TIPC_NODE_SCOPE means "any scope" in this context */
1223 scope = TIPC_NODE_SCOPE;
1225 scope = TIPC_CLUSTER_SCOPE;
1233 scope, exact, &dports);
1698 srcaddr->sock.scope = 0;
1710 srcaddr->member.scope = 0;
2895 static int tipc_sk_publish(struct tipc_sock *tsk, uint scope,
2903 if (scope != TIPC_NODE_SCOPE)
2904 scope = TIPC_CLUSTER_SCOPE;
2913 scope, tsk->portid, key);
2923 static int tipc_sk_withdraw(struct tipc_sock *tsk, uint scope,
2931 if (scope != TIPC_NODE_SCOPE)
2932 scope = TIPC_CLUSTER_SCOPE;
2936 if (publ->scope != scope)
3076 if (mreq->scope > TIPC_NODE_SCOPE)
3084 msg_set_lookup_scope(hdr, mreq->scope);
3090 tipc_nametbl_build_group(net, grp, mreq->type, mreq->scope);
3091 rc = tipc_sk_publish(tsk, mreq->scope, &seq);
3109 int scope;
3113 tipc_group_self(grp, &seq, &scope);
3116 tipc_sk_withdraw(tsk, scope, &seq);
3233 int len, scope;
3273 tipc_group_self(tsk->group, &seq, &scope);
3334 tsk1->peer.scope = TIPC_NODE_SCOPE;
3339 tsk2->peer.scope = TIPC_NODE_SCOPE;