On Wed, May 25, 2022 at 07:09:04PM +0200, Claudio Jeker wrote:
> This introduces max-communities, max-ext-communities and
> max-large-communities for filters which allows to limit the number of
> communities in a path.
> 
> The 3 filters can all be used together and also with other match filters
> including community X:Y.

ok

> Index: rde_community.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/bgpd/rde_community.c,v
> retrieving revision 1.5
> diff -u -p -r1.5 rde_community.c
> --- rde_community.c   25 May 2022 16:03:34 -0000      1.5
> +++ rde_community.c   25 May 2022 16:59:24 -0000
> @@ -283,6 +283,45 @@ struct rde_peer *peer)
>  }
>  
>  /*
> + * Count the number of communities of type type.
> + */
> +int
> +community_count(struct rde_community *comm, uint8_t type)
> +{
> +     size_t l;
> +     int count = 0;
> +     

previous line has an extra tab

Reply via email to