From: benno Date: Tue, 10 Jul 2018 13:03:06 +0000 (+0000) Subject: Initialize the rtable in the requests send to bgpd to the current X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5faf3abbb8e6658e0ec3473e49c231934d289688;p=openbsd 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@ --- 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 @@ -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));