src/backend.c
static int
smp_fetch_srv_id(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
                 const struct arg *args, struct sample *smp)
{
	if (!objt_server(l4->target))
		return 0;

	smp->type = SMP_T_UINT;
	smp->data.uint = objt_server(l4->target)->puid;

	return 1;
}
/* set temp integer to the id of the server */
set temp integer to the id of the server
set temp integer to the id of the server
static int
smp_fetch_srv_id(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
                 const struct arg *args, struct sample *smp)
{
	if (!objt_server(l4->target))
		return 0;
	smp->type = SMP_T_UINT;
	smp->data.uint = objt_server(l4->target)->puid;
	return 1;
}
static int smp_fetch_srv_id ( struct proxy * px , struct session * l4 , void * l7 , unsigned int opt , const struct arg * args , struct sample * smp ) { if ( ! objt_server ( l4 -> target ) ) return 0 ; smp -> type = SMP_T_UINT ; smp -> data . uint = objt_server ( l4 -> target ) -> puid ; return 1 ; }
set temp integer to the id of the server
set temp integer to the id of the server