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

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

	px = args->data.prx;
	return smp_fetch_conn_cnt(&px->table, smp, stktable_lookup_key(&px->table, key));
}
/* set temp integer to the cumulated number of connections from the session's source
 * address in the table pointed to by expr.
 * Accepts exactly 1 argument of type table.
 */
set temp integer to the cumulated number of connections from the session's source
address in the table pointed to by expr.
Accepts exactly 1 argument of type table.
set temp integer to the cumulated number of connections from the session ' s source address in the table pointed to by expr . Accepts exactly 1 argument of type table .
static int
smp_fetch_src_conn_cnt(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
                       const struct arg *args, struct sample *smp)
{
	struct stktable_key *key;
	key = addr_to_stktable_key(&l4->si[0].conn->addr.from);
	if (!key)
		return 0;
	px = args->data.prx;
	return smp_fetch_conn_cnt(&px->table, smp, stktable_lookup_key(&px->table, key));
}
static int smp_fetch_src_conn_cnt ( struct proxy * px , struct session * l4 , void * l7 , unsigned int opt , const struct arg * args , struct sample * smp ) { struct stktable_key * key ; key = addr_to_stktable_key ( & l4 -> si [ 0 ] . conn -> addr . from ) ; if ( ! key ) return 0 ; px = args -> data . prx ; return smp_fetch_conn_cnt ( & px -> table , smp , stktable_lookup_key ( & px -> table , key ) ) ; }
set temp integer to the cumulated number of connections from the session's source
 address in the table pointed to by expr.
set temp integer to the cumulated number of connections from the session ' s source address in the table pointed to by expr .