diff options
Diffstat (limited to 'usr.sbin/bgpd/printconf.c')
-rw-r--r-- | usr.sbin/bgpd/printconf.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c index 1ad98e4ea49..3a20405ef82 100644 --- a/usr.sbin/bgpd/printconf.c +++ b/usr.sbin/bgpd/printconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printconf.c,v 1.151 2022/05/25 16:03:34 claudio Exp $ */ +/* $OpenBSD: printconf.c,v 1.152 2022/05/31 09:45:33 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -925,6 +925,13 @@ print_rule(struct bgpd_config *conf, struct filter_rule *r) } } + if (r->match.maxcomm != 0) + printf("max-communities %d ", r->match.maxcomm - 1); + if (r->match.maxextcomm != 0) + printf("max-ext-communities %d ", r->match.maxextcomm - 1); + if (r->match.maxlargecomm != 0) + printf("max-large-communities %d ", r->match.maxlargecomm - 1); + print_set(&r->set); printf("\n"); |