Lines Matching refs:scope

130 static int tipc_sk_publish(struct tipc_sock *tsk, uint scope,
132 static int tipc_sk_withdraw(struct tipc_sock *tsk, uint scope,
645 res = (addr->scope >= 0) ? in tipc_bind()
646 tipc_sk_publish(tsk, addr->scope, &addr->addr.nameseq) : in tipc_bind()
647 tipc_sk_withdraw(tsk, -addr->scope, &addr->addr.nameseq); in tipc_bind()
687 addr->scope = 0; in tipc_getname()
932 u32 type, inst, scope; in tipc_send_group_anycast() local
941 scope = msg_lookup_scope(hdr); in tipc_send_group_anycast()
949 if (!tipc_nametbl_lookup(net, type, inst, scope, &dsts, in tipc_send_group_anycast()
1082 u32 type, inst, scope, exclude; in tipc_send_group_mcast() local
1090 scope = msg_lookup_scope(hdr); in tipc_send_group_mcast()
1093 if (!tipc_nametbl_lookup(net, type, inst, scope, &dsts, in tipc_send_group_mcast()
1117 u32 type, lower, upper, scope; in tipc_sk_mcast_rcv() local
1153 scope = msg_lookup_scope(hdr); in tipc_sk_mcast_rcv()
1158 scope = TIPC_NODE_SCOPE; in tipc_sk_mcast_rcv()
1160 scope = TIPC_CLUSTER_SCOPE; in tipc_sk_mcast_rcv()
1168 scope, exact, &dports); in tipc_sk_mcast_rcv()
1529 srcaddr->sock.scope = 0; in tipc_sk_set_orig_addr()
1541 srcaddr->member.scope = 0; in tipc_sk_set_orig_addr()
2600 static int tipc_sk_publish(struct tipc_sock *tsk, uint scope, in tipc_sk_publish() argument
2608 if (scope != TIPC_NODE_SCOPE) in tipc_sk_publish()
2609 scope = TIPC_CLUSTER_SCOPE; in tipc_sk_publish()
2618 scope, tsk->portid, key); in tipc_sk_publish()
2628 static int tipc_sk_withdraw(struct tipc_sock *tsk, uint scope, in tipc_sk_withdraw() argument
2636 if (scope != TIPC_NODE_SCOPE) in tipc_sk_withdraw()
2637 scope = TIPC_CLUSTER_SCOPE; in tipc_sk_withdraw()
2641 if (publ->scope != scope) in tipc_sk_withdraw()
2777 if (mreq->scope > TIPC_NODE_SCOPE) in tipc_sk_join()
2785 msg_set_lookup_scope(hdr, mreq->scope); in tipc_sk_join()
2791 tipc_nametbl_build_group(net, grp, mreq->type, mreq->scope); in tipc_sk_join()
2792 rc = tipc_sk_publish(tsk, mreq->scope, &seq); in tipc_sk_join()
2810 int scope; in tipc_sk_leave() local
2814 tipc_group_self(grp, &seq, &scope); in tipc_sk_leave()
2817 tipc_sk_withdraw(tsk, scope, &seq); in tipc_sk_leave()
2929 int len, scope; in tipc_getsockopt() local
2966 tipc_group_self(tsk->group, &seq, &scope); in tipc_getsockopt()
3027 tsk1->peer.scope = TIPC_NODE_SCOPE; in tipc_socketpair()
3032 tsk2->peer.scope = TIPC_NODE_SCOPE; in tipc_socketpair()