diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-08-08 11:30:47 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-08-08 11:30:47 +0000 |
commit | c602ac7680769f25f3183951ae7af8f1c146f1b3 (patch) | |
tree | 6152781405912f94c1018e61077da46cf89f8105 | |
parent | 4a10cf5e001cf9ee55701e242c4d12bfc912a9e0 (diff) |
Set the reconf state of listening addrs to RECONF_REINIT. This is what
the session engine expects and will allow to send out the config without
calling merge_config first.
OK sthen@
-rw-r--r-- | usr.sbin/bgpd/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 1be0d87025a..7832bba15b5 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.399 2019/08/07 10:26:41 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.400 2019/08/08 11:30:46 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -592,6 +592,7 @@ conf_main : AS as4number { fatal("parse conf_main listen on calloc"); la->fd = -1; + la->reconf = RECONF_REINIT; sa = addr2sa(&$3, BGP_PORT, &la->sa_len); memcpy(&la->sa, sa, la->sa_len); TAILQ_INSERT_TAIL(conf->listen_addrs, la, entry); |