src/payload.c
static int
smp_fetch_rdp_cookie_cnt(struct proxy *px, struct session *s, void *l7, unsigned int opt,
                         const struct arg *args, struct sample *smp)
{
	int ret;

	ret = smp_fetch_rdp_cookie(px, s, l7, opt, args, smp);

	if (smp->flags & SMP_F_MAY_CHANGE)
		return 0;

	smp->flags = SMP_F_VOLATILE;
	smp->type = SMP_T_UINT;
	smp->data.uint = ret;
	return 1;
}
/* returns either 1 or 0 depending on whether an RDP cookie is found or not */
returns either 1 or 0 depending on whether an RDP cookie is found or not
returns either 1 or 0 depending on whether an RDP cookie is found or not
static int
smp_fetch_rdp_cookie_cnt(struct proxy *px, struct session *s, void *l7, unsigned int opt,
                         const struct arg *args, struct sample *smp)
{
	int ret;
	ret = smp_fetch_rdp_cookie(px, s, l7, opt, args, smp);
	if (smp->flags & SMP_F_MAY_CHANGE)
		return 0;
	smp->flags = SMP_F_VOLATILE;
	smp->type = SMP_T_UINT;
	smp->data.uint = ret;
	return 1;
}
static int smp_fetch_rdp_cookie_cnt ( struct proxy * px , struct session * s , void * l7 , unsigned int opt , const struct arg * args , struct sample * smp ) { int ret ; ret = smp_fetch_rdp_cookie ( px , s , l7 , opt , args , smp ) ; if ( smp -> flags & SMP_F_MAY_CHANGE ) return 0 ; smp -> flags = SMP_F_VOLATILE ; smp -> type = SMP_T_UINT ; smp -> data . uint = ret ; return 1 ; }
returns either 1 or 0 depending on whether an RDP cookie is found or not
returns either 1 or 0 depending on whether an RDP cookie is found or not