-.\" $OpenBSD: bgpctl.8,v 1.105 2023/03/02 17:09:52 jmc Exp $
+.\" $OpenBSD: bgpctl.8,v 1.106 2023/03/13 16:59:22 claudio Exp $
.\"
.\" Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: March 2 2023 $
+.Dd $Mdocdate: March 13 2023 $
.Dt BGPCTL 8
.Os
.Sh NAME
.It Cm best
Alias for
.Ic selected .
-.It Cm error
-Show only prefixes which are marked invalid and were treated as withdrawn.
-.It Cm selected
-Show only selected routes.
-.It Cm ssv
-Show each RIB entry as a single line, with fields separated by semicolons.
-Only works if
-.Cm detail
-is specified.
.It Cm detail
Show more detailed output for matching routes.
+.It Cm error
+Show only prefixes which are marked invalid and were treated as withdrawn.
.It Ar family
Limit the output to the given address family.
.It Cm in
The
.Cm neighbor
needs to be specified.
+.It Cm invalid
+Show only routes which are not eligible.
+.It Cm leaked
+Show only routes where a route leak was detected.
.It Cm out
Show the filtered routes sent to a neighbor.
The
.Cm neighbor
needs to be specified.
+.It Cm selected
+Show only selected routes.
+.It Cm ssv
+Show each RIB entry as a single line, with fields separated by semicolons.
+Only works if
+.Cm detail
+is specified.
.El
.Pp
Options are silently ignored when used together with
-/* $OpenBSD: bgpctl.c,v 1.289 2023/01/24 11:29:34 claudio Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.290 2023/03/13 16:59:22 claudio Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
if (sum) {
if (flags & F_PREF_INVALID)
*p++ = 'E';
- if (flags & F_PREF_OTC_LOOP)
+ if (flags & F_PREF_OTC_LEAK)
*p++ = 'L';
if (flags & F_PREF_ANNOUNCE)
*p++ = 'A';
if (flags & F_PREF_INVALID)
strlcat(buf, ", invalid", sizeof(buf));
- if (flags & F_PREF_OTC_LOOP)
- strlcat(buf, ", otc loop", sizeof(buf));
+ if (flags & F_PREF_OTC_LEAK)
+ strlcat(buf, ", otc leak", sizeof(buf));
if (flags & F_PREF_STALE)
strlcat(buf, ", stale", sizeof(buf));
if (flags & F_PREF_ELIGIBLE)
-/* $OpenBSD: parser.c,v 1.121 2023/02/02 19:23:01 job Exp $ */
+/* $OpenBSD: parser.c,v 1.122 2023/03/13 16:59:22 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
{ FLAG, "selected", F_CTL_BEST, t_show_rib},
{ FLAG, "detail", F_CTL_DETAIL, t_show_rib},
{ FLAG, "error", F_CTL_INVALID, t_show_rib},
- { FLAG, "ssv" , F_CTL_SSV, t_show_rib},
+ { FLAG, "invalid", F_CTL_INELIGIBLE, t_show_rib},
+ { FLAG, "leaked", F_CTL_LEAKED, t_show_rib},
{ FLAG, "in", F_CTL_ADJ_IN, t_show_rib},
{ FLAG, "out", F_CTL_ADJ_OUT, t_show_rib},
+ { FLAG, "ssv" , F_CTL_SSV, t_show_rib},
{ KEYWORD, "neighbor", NONE, t_show_rib_neigh},
{ KEYWORD, "avs", NONE, t_show_avs},
{ KEYWORD, "ovs", NONE, t_show_ovs},