On Wed, Aug 10, 2022 at 12:17:29PM +0200, Claudio Jeker wrote: > bgpctl show network uses the same data handler as bgpctl show fib. > I increased the space between destination and gateway for IPv6 for the > latter but forgot to adjust the former. > > Before: > flags: S = Static > flags prio destination gateway > S 0 10.2.3.0/24 0.0.0.0 > > After: > flags: S = Static > flags prio destination gateway > S 0 10.2.3.0/24 0.0.0.0
ok > > -- > :wq Claudio > > Index: output.c > =================================================================== > RCS file: /cvs/src/usr.sbin/bgpctl/output.c,v > retrieving revision 1.25 > diff -u -p -r1.25 output.c > --- output.c 28 Jul 2022 10:40:25 -0000 1.25 > +++ output.c 10 Aug 2022 10:11:35 -0000 > @@ -46,8 +46,7 @@ show_head(struct parse_result *res) > break; > case SHOW_FIB: > printf("flags: B = BGP, C = Connected, S = Static\n"); > - printf(" " > - "N = BGP Nexthop reachable via this route\n"); > + printf(" N = BGP Nexthop reachable via this route\n"); > printf(" r = reject route, b = blackhole route\n\n"); > printf("%-5s %-4s %-32s %-32s\n", "flags", "prio", > "destination", "gateway"); > @@ -83,7 +82,8 @@ show_head(struct parse_result *res) > break; > case NETWORK_SHOW: > printf("flags: S = Static\n"); > - printf("flags prio destination gateway\n"); > + printf("%-5s %-4s %-32s %-32s\n", "flags", "prio", > + "destination", "gateway"); > break; > default: > break; >