src/session.c
static int
smp_fetch_src_updt_conn_cnt(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
                            const struct arg *args, struct sample *smp)
{
	struct stksess *ts;
	struct stktable_key *key;
	void *ptr;

	key = addr_to_stktable_key(&l4->si[0].conn->addr.from);
	if (!key)
		return 0;

	px = args->data.prx;

	if ((ts = stktable_update_key(&px->table, key)) == NULL)
		/* entry does not exist and could not be created */
		return 0;

	ptr = stktable_data_ptr(&px->table, ts, STKTABLE_DT_CONN_CNT);
	if (!ptr)
		return 0; /* parameter not stored in this table */

	smp->type = SMP_T_UINT;
	smp->data.uint = ++stktable_data_cast(ptr, conn_cnt);
	smp->flags = SMP_F_VOL_TEST;
	return 1;
}
/* set temp integer to the number of connections from the session's source address
 * in the table pointed to by expr, after updating it.
 * Accepts exactly 1 argument of type table.
 */
set temp integer to the number of connections from the session's source address
in the table pointed to by expr, after updating it.
Accepts exactly 1 argument of type table.
set temp integer to the number of connections from the session ' s source address in the table pointed to by expr after updating it . Accepts exactly 1 argument of type table .
static int
smp_fetch_src_updt_conn_cnt(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
                            const struct arg *args, struct sample *smp)
{
	struct stksess *ts;
	struct stktable_key *key;
	void *ptr;
	key = addr_to_stktable_key(&l4->si[0].conn->addr.from);
	if (!key)
		return 0;
	px = args->data.prx;
	if ((ts = stktable_update_key(&px->table, key)) == NULL)
		return 0;
	ptr = stktable_data_ptr(&px->table, ts, STKTABLE_DT_CONN_CNT);
	if (!ptr)
		return 0; 
	smp->type = SMP_T_UINT;
	smp->data.uint = ++stktable_data_cast(ptr, conn_cnt);
	smp->flags = SMP_F_VOL_TEST;
	return 1;
}
static int smp_fetch_src_updt_conn_cnt ( struct proxy * px , struct session * l4 , void * l7 , unsigned int opt , const struct arg * args , struct sample * smp ) { struct stksess * ts ; struct stktable_key * key ; void * ptr ; key = addr_to_stktable_key ( & l4 -> si [ 0 ] . conn -> addr . from ) ; if ( ! key ) return 0 ; px = args -> data . prx ; if ( ( ts = stktable_update_key ( & px -> table , key ) ) == NULL ) return 0 ; ptr = stktable_data_ptr ( & px -> table , ts , STKTABLE_DT_CONN_CNT ) ; if ( ! ptr ) return 0 ; smp -> type = SMP_T_UINT ; smp -> data . uint = ++ stktable_data_cast ( ptr , conn_cnt ) ; smp -> flags = SMP_F_VOL_TEST ; return 1 ; }
set temp integer to the number of connections from the session's source address
 in the table pointed to by expr, after updating it.
set temp integer to the number of connections from the session ' s source address in the table pointed to by expr after updating it .
/* entry does not exist and could not be created */ /* parameter not stored in this table */