summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/printconf.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-02-09 21:05:10 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-02-09 21:05:10 +0000
commit2f1965eec8d09c342d0a1401eafcb77208fa4e49 (patch)
tree0ecb3f4388a36a29d3a6cec51a864d281763879a /usr.sbin/bgpd/printconf.c
parentebb062301276fefbe998ef6a1d58adc999c30b43 (diff)
Implement "set community delete 65001:*" and friends. This will remove
communities from the path attributes. Useful to make sure that the ones you set later are set by a (evil) peer. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/printconf.c')
-rw-r--r--usr.sbin/bgpd/printconf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c
index 47c4a5fce11..2fddffe3f29 100644
--- a/usr.sbin/bgpd/printconf.c
+++ b/usr.sbin/bgpd/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.51 2006/02/02 14:06:05 claudio Exp $ */
+/* $OpenBSD: printconf.c,v 1.52 2006/02/09 21:05:09 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -120,6 +120,10 @@ print_set(struct filter_set_head *set)
case ACTION_SET_PREPEND_PEER:
printf("prepend-neighbor %u ", s->action.prepend);
break;
+ case ACTION_DEL_COMMUNITY:
+ printf("community delete %u:%u ",
+ s->action.community.as, s->action.community.type);
+ break;
case ACTION_SET_COMMUNITY:
printf("community %u:%u ", s->action.community.as,
s->action.community.type);