Lines Matching refs:portid

87 	u32 portid;  member
115 static struct tipc_sock *tipc_sk_lookup(struct net *net, u32 portid);
365 msg_set_origport(msg, tsk->portid); in tipc_sk_create()
441 tipc_node_remove_conn(net, dnode, tsk->portid); in tipc_release()
459 tsk->portid, TIPC_ERR_NO_PORT); in tipc_release()
461 tipc_link_xmit_skb(net, skb, dnode, tsk->portid); in tipc_release()
462 tipc_node_remove_conn(net, dnode, tsk->portid); in tipc_release()
566 addr->addr.id.ref = tsk->portid; in tipc_getname()
721 u32 portid; in tipc_sk_mcast_rcv() local
742 portid = tipc_plist_pop(&dports); in tipc_sk_mcast_rcv()
743 for (; portid; portid = tipc_plist_pop(&dports)) { in tipc_sk_mcast_rcv()
746 msg_set_destport(buf_msg(_skb), portid); in tipc_sk_mcast_rcv()
921 mtu = tipc_node_get_mtu(net, dnode, tsk->portid); in __tipc_sendmsg()
929 rc = tipc_link_xmit(net, pktchain, dnode, tsk->portid); in __tipc_sendmsg()
1012 u32 portid = tsk->portid; in __tipc_send_stream() local
1048 rc = tipc_link_xmit(net, pktchain, dnode, portid); in __tipc_send_stream()
1058 portid); in __tipc_send_stream()
1111 tipc_node_add_conn(net, peer_node, tsk->portid, peer_port); in tipc_sk_finish_conn()
1112 tsk->max_pkt = tipc_node_get_mtu(net, peer_node, tsk->portid); in tipc_sk_finish_conn()
1221 tsk->portid, TIPC_OK); in tipc_sk_send_ack()
1534 tsk->portid); in filter_connect()
1705 tipc_link_xmit_skb(net, skb, dnode, tsk->portid); in tipc_backlog_rcv()
2095 tsk->portid); in tipc_shutdown()
2103 tsk->portid, TIPC_CONN_SHUTDOWN); in tipc_shutdown()
2104 tipc_link_xmit_skb(net, skb, dnode, tsk->portid); in tipc_shutdown()
2108 tipc_node_remove_conn(net, dnode, tsk->portid); in tipc_shutdown()
2160 peer_port, tsk->portid, TIPC_OK); in tipc_sk_timeout()
2166 tipc_link_xmit_skb(sock_net(sk), skb, peer_node, tsk->portid); in tipc_sk_timeout()
2180 key = tsk->portid + tsk->pub_count + 1; in tipc_sk_publish()
2181 if (key == tsk->portid) in tipc_sk_publish()
2185 scope, tsk->portid, key); in tipc_sk_publish()
2253 static struct tipc_sock *tipc_sk_lookup(struct net *net, u32 portid) in tipc_sk_lookup() argument
2259 tsk = rhashtable_lookup_fast(&tn->sk_rht, &portid, tsk_rht_params); in tipc_sk_lookup()
2273 u32 portid = prandom_u32() % remaining + TIPC_MIN_PORT; in tipc_sk_insert() local
2276 portid++; in tipc_sk_insert()
2277 if ((portid < TIPC_MIN_PORT) || (portid > TIPC_MAX_PORT)) in tipc_sk_insert()
2278 portid = TIPC_MIN_PORT; in tipc_sk_insert()
2279 tsk->portid = portid; in tipc_sk_insert()
2304 .key_offset = offsetof(struct tipc_sock, portid),
2637 hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in __tipc_nl_add_sk()
2645 if (nla_put_u32(skb, TIPC_NLA_SOCK_REF, tsk->portid)) in __tipc_nl_add_sk()
2687 if (prev_portid && prev_portid != tsk->portid) { in tipc_nl_sk_dump()
2694 prev_portid = tsk->portid; in tipc_nl_sk_dump()
2718 hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in __tipc_nl_add_sk_publ()