diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-08-03 13:14:08 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-08-03 13:14:08 +0000 |
commit | 6f933eab8289d6d1f5f910e1af06e75b92a70bea (patch) | |
tree | 1886aa38f5116dc7421fda3e566e213700f910cf /usr.sbin/bgpd | |
parent | c8d735a0c9c853c9dcf9d3c29df1d5bf820c6ffa (diff) |
Make announce "self" work like all others (self is a bit special because
it's a keyword but "self" is not). OK henning@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 714782bfad3..2ef9f9d1b8a 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.232 2009/07/20 14:56:20 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.233 2009/08/03 13:14:07 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -884,7 +884,9 @@ peeropts : REMOTEAS as4number { curpeer->conf.announce_type = ANNOUNCE_SELF; } | ANNOUNCE STRING { - if (!strcmp($2, "none")) + if (!strcmp($2, "self")) + curpeer->conf.announce_type = ANNOUNCE_SELF; + else if (!strcmp($2, "none")) curpeer->conf.announce_type = ANNOUNCE_NONE; else if (!strcmp($2, "all")) curpeer->conf.announce_type = ANNOUNCE_ALL; |