From 85e60f1f46cb0abb6cf1fc3e0298b3c7495fb4ee Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 23 Jun 2004 00:11:28 +0000 Subject: Support rfc 3765 which adds a new well known community NOPEER. OK henning@ --- usr.sbin/bgpd/parse.y | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bgpd/parse.y') diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index c79414cc047..a37537c017f 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.115 2004/06/20 18:35:12 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.116 2004/06/23 00:11:27 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer @@ -1495,6 +1495,10 @@ parsecommunity(char *s, int *as, int *type) *as = COMMUNITY_WELLKNOWN; *type = COMMUNITY_NO_EXPSUBCONFED; return (0); + } else if (strcasecmp(s, "NO_PEER") == 0) { + *as = COMMUNITY_WELLKNOWN; + *type = COMMUNITY_NO_PEER; + return (0); } if ((p = strchr(s, ':')) == NULL) { -- cgit v1.2.3