diff options
author | 2020-05-10 13:38:46 +0000 | |
---|---|---|
committer | 2020-05-10 13:38:46 +0000 | |
commit | a78f83ce721c25bb7a3c00a20e2c8bec5a6f6e48 (patch) | |
tree | 6c0d79bf26707e5efa4042897f1b0f191b33bd3b /usr.sbin/bgpd/parse.y | |
parent | Allow to have multiple domain ... {} sextions with the same domain (diff) | |
download | wireguard-openbsd-a78f83ce721c25bb7a3c00a20e2c8bec5a6f6e48.tar.xz wireguard-openbsd-a78f83ce721c25bb7a3c00a20e2c8bec5a6f6e48.zip |
In bgpctl argument parser, re-arrange 'reason' parsing ('nei action [reason]')
to be more generic, then change 'reload' to take take a '[reason]' also,
which will be logged by bgpd.
ok kn claudio
Diffstat (limited to 'usr.sbin/bgpd/parse.y')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index a2d98aff687..66f6eaad148 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.407 2020/05/08 07:44:17 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.408 2020/05/10 13:38:46 deraadt Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1297,9 +1297,9 @@ peeropts : REMOTEAS as4number { } | DOWN STRING { curpeer->conf.down = 1; - if (strlcpy(curpeer->conf.shutcomm, $2, - sizeof(curpeer->conf.shutcomm)) >= - sizeof(curpeer->conf.shutcomm)) { + if (strlcpy(curpeer->conf.reason, $2, + sizeof(curpeer->conf.reason)) >= + sizeof(curpeer->conf.reason)) { yyerror("shutdown reason too long"); free($2); YYERROR; |