Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: bgpctl: include filter size in total for filters and sets
To:
tech@openbsd.org
Date:
Mon, 18 May 2026 11:09:43 +0200

Download raw body.

Thread
On Mon, May 18, 2026 at 10:38:42AM +0200, Claudio Jeker wrote:
> Add the filter_size to the
> 	Sets and filters using %s of memory
> line. This was missed when adding this memory size.
> The json and ometric code do a total just for filters and there the code
> is already correct.

ok tb

> 
> -- 
> :wq Claudio
> 
> Index: output.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/bgpctl/output.c,v
> diff -u -p -r1.75 output.c
> --- output.c	13 May 2026 15:51:49 -0000	1.75
> +++ output.c	18 May 2026 08:34:29 -0000
> @@ -1147,7 +1147,7 @@ show_rib_mem(struct rde_memstats *stats)
>  	    stats->attr_data + stats->bitmap_size + stats->hash_size));
>  	printf("Sets and filters using %s of memory\n",
>  	    fmt_mem(stats->aset_size + stats->pset_size + stats->aspa_size +
> -	    stats->filter_set_size));
> +	    stats->filter_size + stats->filter_set_size));
>  
>  	printf("\nRDE queue statistics\n");
>  	printf("%10lld messages queued holding %s of data\n",
>