From 7b4a6451f38153833bb1bf7ea19900410574cc1e Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Mon, 20 Jul 2009 15:03:17 +0000 Subject: Include more info in the bgpctl show nexthop ctl message. Mainly add the gateway used for non-connected routes. This info was missing all the time and often resulted in massive confusion when the nexthop selection choosed a bad nexthop. --- usr.sbin/bgpd/bgpd.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.sbin/bgpd/bgpd.h') diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index a8dbaa4c535..7c0da04b9dc 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.241 2009/06/12 16:42:53 claudio Exp $ */ +/* $OpenBSD: bgpd.h,v 1.242 2009/07/20 15:03:16 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -437,8 +437,10 @@ struct pftable_msg { struct ctl_show_nexthop { struct bgpd_addr addr; - u_int8_t valid; + struct bgpd_addr gateway; struct kif kif; + u_int8_t valid; + u_int8_t connected; }; struct ctl_neighbor { -- cgit v1.2.3