summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/printconf.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-03-22 13:30:36 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-03-22 13:30:36 +0000
commit66dd0580bda97acb6a7df2d3e4d13f98e018fe54 (patch)
tree9c5f5679b05acb93ee8c25ae3fd08212cb818535 /usr.sbin/bgpd/printconf.c
parent959f075402b5382286866f3c8a0345297a75b97c (diff)
Change the way bgpd selects nexthops. Up until now every route was considered
when calculating the nexthop. Now only non BGP routes and not the default route are used unless forced with the new config options nexthop qualify via bgp nexthop qualify via default This change is required for complex setups e.g. where an additional IGP is running. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/printconf.c')
-rw-r--r--usr.sbin/bgpd/printconf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c
index 9581937bef3..a7bcf5cb50f 100644
--- a/usr.sbin/bgpd/printconf.c
+++ b/usr.sbin/bgpd/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.53 2006/02/10 14:34:40 claudio Exp $ */
+/* $OpenBSD: printconf.c,v 1.54 2006/03/22 13:30:35 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -182,6 +182,11 @@ print_mainconf(struct bgpd_config *conf)
printf("listen on %s\n",
log_sockaddr((struct sockaddr *)&la->sa));
+ if (conf->flags & BGPD_FLAG_NEXTHOP_BGP)
+ printf("nexthop qualify via bgp\n");
+ if (conf->flags & BGPD_FLAG_NEXTHOP_DEFAULT)
+ printf("nexthop qualify via default\n");
+
if (conf->flags & BGPD_FLAG_REDIST_CONNECTED) {
printf("network inet connected");
if (!TAILQ_EMPTY(&conf->connectset))