Lines Matching refs:clp
72 static void connection_get(struct conn_list *clp, ndmp_door_ctx_t *enc_ctx);
73 static void ndmp_connect_get_conn(struct conn_list *clp,
650 struct conn_list *clp;
655 LIST_FOREACH(clp, &cl_head, cl_q) {
656 if (clp->cl_conn == connection) {
658 return (clp);
680 struct conn_list *clp;
687 if ((clp = ndmp_malloc(sizeof (struct conn_list))) == NULL)
690 clp->cl_conn = connection;
691 clp->cl_id = *id;
694 LIST_INSERT_HEAD(&cl_head, clp, cl_q);
716 struct conn_list *clp;
719 if (!(clp = ndmp_connect_list_find(connection))) {
725 LIST_REMOVE(clp, cl_q);
727 free(clp);
748 struct conn_list *clp;
753 LIST_FOREACH(clp, &cl_head, cl_q) {
754 if (clp->cl_id == id) {
756 return (clp);
768 ndmp_connect_get_conn(struct conn_list *clp, ndmp_door_ctx_t *enc_ctx)
775 if (!(session = (ndmpd_session_t *)ndmp_get_client_data(clp->cl_conn)))
778 ndmp_door_put_int32(enc_ctx, clp->cl_id);
780 ndmp_door_put_int32(enc_ctx, clp->cl_conn->conn_authorized);
782 if (tcp_get_peer(clp->cl_conn->conn_sock, &(addr.s_addr), &port) != -1)
1006 connection_get(struct conn_list *clp, ndmp_door_ctx_t *enc_ctx)
1010 session = (ndmpd_session_t *)ndmp_get_client_data(clp->cl_conn);
1019 ndmp_connect_get_conn(clp, enc_ctx);
1020 ndmp_connect_get_v2(clp->cl_conn, enc_ctx);
1024 ndmp_connect_get_conn(clp, enc_ctx);
1025 ndmp_connect_get_v3(clp->cl_conn, enc_ctx);
1078 struct conn_list *clp;
1082 LIST_FOREACH(clp, &cl_head, cl_q) {
1088 LIST_FOREACH(clp, &cl_head, cl_q) {
1089 connection_get(clp, enc_ctx);
1110 struct conn_list *clp;
1112 if (!(clp = ndmp_connect_list_find_id(id)))
1115 return (ndmpd_connect_kill(clp->cl_conn));