diff options
author | 2018-07-10 13:03:06 +0000 | |
---|---|---|
committer | 2018-07-10 13:03:06 +0000 | |
commit | 5faf3abbb8e6658e0ec3473e49c231934d289688 (patch) | |
tree | f4b88128f905c05d7064150b24640ce315c4b44b | |
parent | move the top level pledge, getrtable() works with pledge stdio. (diff) | |
download | wireguard-openbsd-5faf3abbb8e6658e0ec3473e49c231934d289688.tar.xz wireguard-openbsd-5faf3abbb8e6658e0ec3473e49c231934d289688.zip |
Initialize the rtable in the requests send to bgpd to the current
rtables process. With this you dont need to add "table N" to commands
when talking to a bgpd not in rdomain 0.
ok claudio@ phessler@
-rw-r--r-- | usr.sbin/bgpctl/parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c index a8bf259b0ac..7435538e0cc 100644 --- a/usr.sbin/bgpctl/parser.c +++ b/usr.sbin/bgpctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.81 2017/10/15 20:44:21 deraadt Exp $ */ +/* $OpenBSD: parser.c,v 1.82 2018/07/10 13:03:06 benno Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -492,6 +492,7 @@ parse(int argc, char *argv[]) res.large_community.as = COMMUNITY_UNSET; res.large_community.ld1 = COMMUNITY_UNSET; res.large_community.ld2 = COMMUNITY_UNSET; + res.rtableid = getrtable(); TAILQ_INIT(&res.set); if ((res.irr_outdir = getcwd(NULL, 0)) == NULL) { fprintf(stderr, "getcwd failed: %s\n", strerror(errno)); |