Lines Matching +full:100 +full:ua
151 static int tipc_sk_publish(struct tipc_sock *tsk, struct tipc_uaddr *ua);
152 static int tipc_sk_withdraw(struct tipc_sock *tsk, struct tipc_uaddr *ua);
678 struct tipc_uaddr *ua = (struct tipc_uaddr *)skaddr; in __tipc_bind() local
685 if (ua->addrtype == TIPC_SERVICE_ADDR) { in __tipc_bind()
686 ua->addrtype = TIPC_SERVICE_RANGE; in __tipc_bind()
687 ua->sr.upper = ua->sr.lower; in __tipc_bind()
689 if (ua->scope < 0) { in __tipc_bind()
691 ua->scope = -ua->scope; in __tipc_bind()
694 if (ua->scope != TIPC_NODE_SCOPE) in __tipc_bind()
695 ua->scope = TIPC_CLUSTER_SCOPE; in __tipc_bind()
701 return tipc_sk_withdraw(tsk, ua); in __tipc_bind()
702 return tipc_sk_publish(tsk, ua); in __tipc_bind()
717 struct tipc_uaddr *ua = (struct tipc_uaddr *)skaddr; in tipc_bind() local
718 u32 atype = ua->addrtype; in tipc_bind()
721 if (!tipc_uaddr_valid(ua, alen)) in tipc_bind()
725 if (ua->sr.type < TIPC_RESERVED_TYPES) { in tipc_bind()
727 ua->sr.type); in tipc_bind()
835 * @ua: destination address struct
843 static int tipc_sendmcast(struct socket *sock, struct tipc_uaddr *ua, in tipc_sendmcast() argument
865 tipc_nametbl_lookup_mcast_nodes(net, ua, &dsts); in tipc_sendmcast()
875 msg_set_nametype(hdr, ua->sr.type); in tipc_sendmcast()
876 msg_set_namelower(hdr, ua->sr.lower); in tipc_sendmcast()
877 msg_set_nameupper(hdr, ua->sr.upper); in tipc_sendmcast()
961 struct tipc_uaddr *ua = (struct tipc_uaddr *)m->msg_name; in tipc_send_group_unicast() local
969 node = ua->sk.node; in tipc_send_group_unicast()
970 port = ua->sk.ref; in tipc_send_group_unicast()
1004 struct tipc_uaddr *ua = (struct tipc_uaddr *)m->msg_name; in tipc_send_group_anycast() local
1019 ua->sa.type = msg_nametype(hdr); in tipc_send_group_anycast()
1020 ua->scope = msg_lookup_scope(hdr); in tipc_send_group_anycast()
1029 if (!tipc_nametbl_lookup_group(net, ua, &dsts, &dstcnt, in tipc_send_group_anycast()
1085 struct tipc_uaddr *ua = (struct tipc_uaddr *)m->msg_name; in tipc_send_group_bcast() local
1110 if (ua) { in tipc_send_group_bcast()
1112 msg_set_nameinst(hdr, ua->sa.instance); in tipc_send_group_bcast()
1159 struct tipc_uaddr *ua = (struct tipc_uaddr *)m->msg_name; in tipc_send_group_mcast() local
1168 ua->sa.type = msg_nametype(hdr); in tipc_send_group_mcast()
1169 ua->scope = msg_lookup_scope(hdr); in tipc_send_group_mcast()
1172 if (!tipc_nametbl_lookup_group(net, ua, &dsts, &dstcnt, exclude, true)) in tipc_send_group_mcast()
1176 tipc_dest_pop(&dsts, &ua->sk.node, &ua->sk.ref); in tipc_send_group_mcast()
1201 struct tipc_uaddr ua; in tipc_sk_mcast_rcv() local
1206 ua.addrtype = TIPC_SERVICE_RANGE; in tipc_sk_mcast_rcv()
1216 ua.sr.type = msg_nametype(hdr); in tipc_sk_mcast_rcv()
1217 ua.sr.lower = msg_namelower(hdr); in tipc_sk_mcast_rcv()
1218 ua.sr.upper = msg_nameupper(hdr); in tipc_sk_mcast_rcv()
1220 ua.scope = TIPC_ANY_SCOPE; in tipc_sk_mcast_rcv()
1222 ua.scope = TIPC_CLUSTER_SCOPE; in tipc_sk_mcast_rcv()
1237 ua.sr.lower = 0; in tipc_sk_mcast_rcv()
1238 ua.sr.upper = ~0; in tipc_sk_mcast_rcv()
1239 ua.scope = msg_lookup_scope(hdr); in tipc_sk_mcast_rcv()
1243 tipc_nametbl_lookup_mcast_sockets(net, &ua, &dports); in tipc_sk_mcast_rcv()
1415 struct tipc_uaddr *ua = (struct tipc_uaddr *)m->msg_name; in __tipc_sendmsg() local
1428 if (ua) { in __tipc_sendmsg()
1429 if (!tipc_uaddr_valid(ua, m->msg_namelen)) in __tipc_sendmsg()
1431 atype = ua->addrtype; in __tipc_sendmsg()
1436 if (!ua) in __tipc_sendmsg()
1447 if (!ua) { in __tipc_sendmsg()
1448 ua = (struct tipc_uaddr *)&tsk->peer; in __tipc_sendmsg()
1449 if (!syn && ua->family != AF_TIPC) in __tipc_sendmsg()
1451 atype = ua->addrtype; in __tipc_sendmsg()
1470 return tipc_sendmcast(sock, ua, m, dlen, timeout); in __tipc_sendmsg()
1472 skaddr.node = ua->lookup_node; in __tipc_sendmsg()
1473 ua->scope = tipc_node2scope(skaddr.node); in __tipc_sendmsg()
1474 if (!tipc_nametbl_lookup_anycast(net, ua, &skaddr)) in __tipc_sendmsg()
1477 skaddr = ua->sk; in __tipc_sendmsg()
1494 msg_set_nametype(hdr, ua->sa.type); in __tipc_sendmsg()
1495 msg_set_nameinst(hdr, ua->sa.instance); in __tipc_sendmsg()
1496 msg_set_lookup_scope(hdr, ua->scope); in __tipc_sendmsg()
2244 delay = msecs_to_jiffies(delay + 100); in tipc_sk_filter_connect()
2863 jiffies + msecs_to_jiffies(100)); in tipc_sk_retry_connect()
2907 static int tipc_sk_publish(struct tipc_sock *tsk, struct tipc_uaddr *ua) in tipc_sk_publish() argument
2922 p = tipc_nametbl_publish(net, ua, &skaddr, key); in tipc_sk_publish()
2932 static int tipc_sk_withdraw(struct tipc_sock *tsk, struct tipc_uaddr *ua) in tipc_sk_withdraw() argument
2940 if (!ua) { in tipc_sk_withdraw()
2947 if (p->scope != ua->scope) in tipc_sk_withdraw()
2949 if (p->sr.type != ua->sr.type) in tipc_sk_withdraw()
2951 if (p->sr.lower != ua->sr.lower) in tipc_sk_withdraw()
2953 if (p->sr.upper != ua->sr.upper) in tipc_sk_withdraw()
2955 tipc_nametbl_withdraw(net, ua, &p->sk, p->key); in tipc_sk_withdraw()
3077 struct tipc_uaddr ua; in tipc_sk_join() local
3095 tipc_uaddr(&ua, TIPC_SERVICE_RANGE, mreq->scope, in tipc_sk_join()
3097 tipc_nametbl_build_group(net, grp, &ua); in tipc_sk_join()
3098 rc = tipc_sk_publish(tsk, &ua); in tipc_sk_join()
3115 struct tipc_uaddr ua; in tipc_sk_leave() local
3120 ua.addrtype = TIPC_SERVICE_RANGE; in tipc_sk_leave()
3121 tipc_group_self(grp, &ua.sr, &scope); in tipc_sk_leave()
3122 ua.scope = scope; in tipc_sk_leave()
3125 tipc_sk_withdraw(tsk, &ua); in tipc_sk_leave()
3910 return (qsize > lim * 90 / 100); in tipc_sk_overlimit1()
3927 return (qsize > lim * 90 / 100); in tipc_sk_overlimit2()