src/proto_http.c
static int
smp_fetch_cookie_val(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
                     const struct arg *args, struct sample *smp)
{
	int ret = smp_fetch_cookie(px, l4, l7, opt, args, smp);

	if (ret > 0) {
		smp->type = SMP_T_UINT;
		smp->data.uint = strl2ic(smp->data.str.str, smp->data.str.len);
	}

	return ret;
}
/* Fetch an cookie's integer value. The integer value is returned. It
 * takes a mandatory argument of type string. It relies on smp_fetch_cookie().
 */
Fetch an cookie's integer value. The integer value is returned. It
takes a mandatory argument of type string. It relies on smp_fetch_cookie().
Fetch an cookie ' s integer value . The integer value is returned . It takes a mandatory argument of type string . It relies on smp_fetch_cookie () .
static int
smp_fetch_cookie_val(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
                     const struct arg *args, struct sample *smp)
{
	int ret = smp_fetch_cookie(px, l4, l7, opt, args, smp);
	if (ret > 0) {
		smp->type = SMP_T_UINT;
		smp->data.uint = strl2ic(smp->data.str.str, smp->data.str.len);
	}
	return ret;
}
static int smp_fetch_cookie_val ( struct proxy * px , struct session * l4 , void * l7 , unsigned int opt , const struct arg * args , struct sample * smp ) { int ret = smp_fetch_cookie ( px , l4 , l7 , opt , args , smp ) ; if ( ret > 0 ) { smp -> type = SMP_T_UINT ; smp -> data . uint = strl2ic ( smp -> data . str . str , smp -> data . str . len ) ; } return ret ; }
Fetch an cookie's integer value.
Fetch an cookie ' s integer value .