diff options
author | 2009-08-03 13:14:07 +0000 | |
---|---|---|
committer | 2009-08-03 13:14:07 +0000 | |
commit | 5bc2cfaf0d980de9ff0eb853c6a9f88f03653502 (patch) | |
tree | fb547129ea18c6f9a56f0cde4173ffd1ce377778 | |
parent | Comment fixes and code tidy-up (whitespace and more consistent (diff) | |
download | wireguard-openbsd-5bc2cfaf0d980de9ff0eb853c6a9f88f03653502.tar.xz wireguard-openbsd-5bc2cfaf0d980de9ff0eb853c6a9f88f03653502.zip |
Make announce "self" work like all others (self is a bit special because
it's a keyword but "self" is not). OK henning@
-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; |