-/* $OpenBSD: bgpctl.c,v 1.182 2015/09/16 20:25:41 stsp Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.183 2015/10/11 19:53:57 sthen Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
case COMMUNITY_NO_PEER:
printf("NO_PEER");
break;
+ case COMMUNITY_BLACKHOLE:
+ printf("BLACKHOLE");
+ break;
default:
printf("WELLKNOWN:%hu", v);
break;
-/* $OpenBSD: parser.c,v 1.72 2015/10/11 19:21:44 phessler Exp $ */
+/* $OpenBSD: parser.c,v 1.73 2015/10/11 19:53:57 sthen Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
as = COMMUNITY_WELLKNOWN;
type = COMMUNITY_NO_PEER;
goto done;
+ } else if (strcasecmp(word, "BLACKHOLE") == 0) {
+ as = COMMUNITY_WELLKNOWN;
+ type = COMMUNITY_BLACKHOLE;
+ goto done;
}
if ((p = strchr(word, ':')) == NULL) {
case COMMUNITY_NO_EXPORT:
case COMMUNITY_NO_ADVERTISE:
case COMMUNITY_NO_EXPSUBCONFED:
+ case COMMUNITY_BLACKHOLE:
/* valid */
break;
default: