src/dumpstats.c
static int stats_dump_table_head_to_buffer(struct chunk *msg, struct stream_interface *si,
					   struct proxy *proxy, struct proxy *target)
{
	struct session *s = si->conn->xprt_ctx;

	chunk_appendf(msg, "# table: %s, type: %s, size:%d, used:%d\n",
		     proxy->id, stktable_types[proxy->table.type].kw, proxy->table.size, proxy->table.current);

	/* any other information should be dumped here */

	if (target && s->listener->bind_conf->level < ACCESS_LVL_OPER)
		chunk_appendf(msg, "# contents not dumped due to insufficient privileges\n");

	if (bi_putchk(si->ib, msg) == -1)
		return 0;

	return 1;
}
/* Dump the status of a table to a stream interface's
 * read buffer. It returns 0 if the output buffer is full
 * and needs to be called again, otherwise non-zero.
 */
Dump the status of a table to a stream interface's
read buffer. It returns 0 if the output buffer is full
and needs to be called again, otherwise non-zero.
Dump the status of a table to a stream interface ' s read buffer . It returns 0 if the output buffer is full and needs to be called again otherwise non - zero .
static int stats_dump_table_head_to_buffer(struct chunk *msg, struct stream_interface *si,
					   struct proxy *proxy, struct proxy *target)
{
	struct session *s = si->conn->xprt_ctx;
	chunk_appendf(msg, "# table: %s, type: %s, size:%d, used:%d\n",
		     proxy->id, stktable_types[proxy->table.type].kw, proxy->table.size, proxy->table.current);
	if (target && s->listener->bind_conf->level < ACCESS_LVL_OPER)
		chunk_appendf(msg, "# contents not dumped due to insufficient privileges\n");
	if (bi_putchk(si->ib, msg) == -1)
		return 0;
	return 1;
}
static int stats_dump_table_head_to_buffer ( struct chunk * msg , struct stream_interface * si , struct proxy * proxy , struct proxy * target ) { struct session * s = si -> conn -> xprt_ctx ; chunk_appendf ( msg , " \n " , proxy -> id , stktable_types [ proxy -> table . type ] . kw , proxy -> table . size , proxy -> table . current ) ; if ( target && s -> listener -> bind_conf -> level < ACCESS_LVL_OPER ) chunk_appendf ( msg , " \n " ) ; if ( bi_putchk ( si -> ib , msg ) == -1 ) return 0 ; return 1 ; }
Dump the status of a table to a stream interface's
 read buffer.
Dump the status of a table to a stream interface ' s read buffer .
/* any other information should be dumped here */