Up to [local] / src / usr.sbin / bgpctl
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.52 / (download) - annotate - [select for diffs], Mon Mar 10 14:08:25 2025 UTC (6 months, 2 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_7_BASE,
OPENBSD_7_7,
HEAD
Changes since 1.51: +4 -1 lines
Diff to previous 1.51 (colored)
Include arpa/inet.h in files that use inet_ntoa() or similar.
Revision 1.51 / (download) - annotate - [select for diffs], Thu Feb 20 19:48:14 2025 UTC (7 months ago) by claudio
Branch: MAIN
Changes since 1.50: +8 -8 lines
Diff to previous 1.50 (colored)
Adjust bgpctl to the monotime changes. OK tb@
Revision 1.50 / (download) - annotate - [select for diffs], Fri Dec 13 19:22:01 2024 UTC (9 months, 1 week ago) by claudio
Branch: MAIN
Changes since 1.49: +3 -1 lines
Diff to previous 1.49 (colored)
bgpctl bits for RFC 8358 (Graceful notification) support OK tb@
Revision 1.49 / (download) - annotate - [select for diffs], Mon Dec 9 10:52:27 2024 UTC (9 months, 2 weeks ago) by claudio
Branch: MAIN
Changes since 1.48: +2 -1 lines
Diff to previous 1.48 (colored)
Bits for the new extended message capability (RFC8654). OK tb@
Revision 1.48 / (download) - annotate - [select for diffs], Tue Oct 1 18:33:16 2024 UTC (11 months, 3 weeks ago) by claudio
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)
Use auth_conf.method instead of auth_state.method. The latter is always 0.
Revision 1.47 / (download) - annotate - [select for diffs], Tue Oct 1 11:50:15 2024 UTC (11 months, 3 weeks ago) by claudio
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)
Adjust to the pfkey changes in bgpd. OK tb@
Revision 1.46 / (download) - annotate - [select for diffs], Wed Aug 14 19:10:51 2024 UTC (13 months, 1 week ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_6_BASE,
OPENBSD_7_6
Changes since 1.45: +3 -1 lines
Diff to previous 1.45 (colored)
Add 'bgpctl show rib filtered' support. OK tb@
Revision 1.45 / (download) - annotate - [select for diffs], Mon Aug 12 09:05:28 2024 UTC (13 months, 1 week ago) by claudio
Branch: MAIN
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored)
Print min-version of a RTR session. OK tb@
Revision 1.44 / (download) - annotate - [select for diffs], Wed May 22 08:42:34 2024 UTC (16 months ago) by claudio
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)
Adjust code since remote_bgpid, bgpid and clusterid changed to host byte order. OK tb@
Revision 1.43 / (download) - annotate - [select for diffs], Wed Apr 24 10:42:09 2024 UTC (17 months ago) by claudio
Branch: MAIN
Changes since 1.42: +1 -2 lines
Diff to previous 1.42 (colored)
announce_capa is no more. OK tb@
Revision 1.42 / (download) - annotate - [select for diffs], Wed Jan 31 11:23:20 2024 UTC (19 months, 3 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5
Changes since 1.41: +103 -143 lines
Diff to previous 1.41 (colored)
Convert IMSG_CTL_SHOW_RIB_ATTR over to the new ibuf API. This converts show_attr() and json_attr() and with that also the community specific functions. This removes some hacks inside of show_attr() that where added before. OK tb@
Revision 1.41 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:13 2024 UTC (19 months, 3 weeks ago) by claudio
Branch: MAIN
Changes since 1.40: +16 -15 lines
Diff to previous 1.40 (colored)
Adjust bgpctl to work with the modified aspath functions from util.c While doing that convert IMSG_CTL_SHOW_RIB over to the new ibuf api. OK tb@
Revision 1.40 / (download) - annotate - [select for diffs], Thu Jan 25 09:54:21 2024 UTC (19 months, 4 weeks ago) by claudio
Branch: MAIN
Changes since 1.39: +14 -14 lines
Diff to previous 1.39 (colored)
Siwtch IMSG_CTL_SHOW_RIB_COMMUNITIES over to the new ibuf api. Adjust fmt_ext_community() to take a uint64_t as argument instead of passing a pointer. OK tb@
Revision 1.39 / (download) - annotate - [select for diffs], Tue Jan 23 16:16:15 2024 UTC (20 months ago) by claudio
Branch: MAIN
Changes since 1.38: +20 -28 lines
Diff to previous 1.38 (colored)
Adopt bgpctl code to the ibuf changes done in bgpd. Adjust code that calls nlri_get_prefix() and friends to work with an ibuf. show_mrt_update() is mostly converted because of this. The output functions and the rest of the mrtparser are just minimally touched to keep the diff reasonable. OK tb@
Revision 1.38 / (download) - annotate - [select for diffs], Thu Jan 11 13:09:41 2024 UTC (20 months, 1 week ago) by claudio
Branch: MAIN
Changes since 1.37: +2 -1 lines
Diff to previous 1.37 (colored)
Display the exported rtr session state and fix a missing indent. OK tb@
Revision 1.37 / (download) - annotate - [select for diffs], Tue Dec 19 10:32:20 2023 UTC (21 months ago) by claudio
Branch: MAIN
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored)
Show the RTR protocol version in the `bgpctl show rtr` output. Knowing the version is essential to understand if ASPA PDUs are included or not. OK tb@
Revision 1.36 / (download) - annotate - [select for diffs], Mon Nov 20 14:18:21 2023 UTC (22 months ago) by claudio
Branch: MAIN
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored)
KNF
Revision 1.35 / (download) - annotate - [select for diffs], Mon Jun 5 16:24:05 2023 UTC (2 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE,
OPENBSD_7_4
Changes since 1.34: +37 -37 lines
Diff to previous 1.34 (colored)
Sync json.c with rpki-client rev 1.3: Add an extra argument compact to json_do_object() to instruct the parser to dump this object on a single line. While one can select on an object to object basis for arrays the compact setting is inherited from the surrounding object. OK tb@
Revision 1.34 / (download) - annotate - [select for diffs], Fri May 5 07:42:40 2023 UTC (2 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.33: +89 -92 lines
Diff to previous 1.33 (colored)
Sync json.c with the one from rpki-client. This adds json_do_string(). Convert json_do_printf() calls using static strings or "%s" fmt over to json_do_string() in the json output. OK tb@
Revision 1.33 / (download) - annotate - [select for diffs], Wed Apr 26 19:14:54 2023 UTC (2 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)
Use fprintf instead of printf and pass the FILE handle in json_do_start(). OK tb@
Revision 1.32 / (download) - annotate - [select for diffs], Fri Apr 21 10:49:01 2023 UTC (2 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.31: +2 -3 lines
Diff to previous 1.31 (colored)
Adjust ext community handling to support the generic transitive communities introduced with flowspec. OK tb@
Revision 1.31 / (download) - annotate - [select for diffs], Tue Mar 28 12:07:09 2023 UTC (2 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)
Use pt_size from struct rde_memstats instead of computing it by hand. OK tb@
Revision 1.30 / (download) - annotate - [select for diffs], Thu Mar 9 13:13:14 2023 UTC (2 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE,
OPENBSD_7_3
Changes since 1.29: +13 -5 lines
Diff to previous 1.29 (colored)
Add role output to bgpctl, also adjust the capability output. Note, this changes the JSON output of neighbors a bit. Part of the large RFC9234 rework in bgpd. OK tb@
Revision 1.29 / (download) - annotate - [select for diffs], Tue Jan 24 11:29:34 2023 UTC (2 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.28: +3 -2 lines
Diff to previous 1.28 (colored)
Print the ASPA validation state (avs) in various show rib outputs. OK tb@
Revision 1.28 / (download) - annotate - [select for diffs], Tue Jan 17 16:09:34 2023 UTC (2 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)
Teach bgpctl about ASPA tables. OK tb@
Revision 1.27 / (download) - annotate - [select for diffs], Wed Dec 28 21:30:15 2022 UTC (2 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)
spelling fixes; from paul tagliamonte any parts of his diff not taken are noted on tech
Revision 1.26 / (download) - annotate - [select for diffs], Wed Nov 9 14:20:11 2022 UTC (2 years, 10 months ago) by claudio
Branch: MAIN
Changes since 1.25: +7 -1 lines
Diff to previous 1.25 (colored)
Show the MPLS label of a L3VPN route in show fib output. OK tb@
Revision 1.25 / (download) - annotate - [select for diffs], Mon Nov 7 11:33:24 2022 UTC (2 years, 10 months ago) by mbuhl
Branch: MAIN
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)
Fix some spelling errors. OK claudio@
Revision 1.24 / (download) - annotate - [select for diffs], Mon Oct 17 12:01:19 2022 UTC (2 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)
Implement openmetric output via bgpctl show metric command This adds most of the generic code to output the metrics with labels and implements some basic metrics. The code works but metrics may still change. OK tb@
Revision 1.23 / (download) - annotate - [select for diffs], Wed Aug 31 15:00:53 2022 UTC (3 years ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2
Changes since 1.22: +1 -24 lines
Diff to previous 1.22 (colored)
Remove the hash statistics print code. The RDE no longer sends these imsgs. OK tb@
Revision 1.22 / (download) - annotate - [select for diffs], Mon Aug 29 18:19:21 2022 UTC (3 years ago) by claudio
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)
aspath_refs is gone, adjust code
Revision 1.21 / (download) - annotate - [select for diffs], Mon Aug 29 14:58:15 2022 UTC (3 years ago) by claudio
Branch: MAIN
Changes since 1.20: +6 -1 lines
Diff to previous 1.20 (colored)
report pending update and withdraw routes in the show neighbor output. OK tb@
Revision 1.20 / (download) - annotate - [select for diffs], Thu Jul 28 10:40:25 2022 UTC (3 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored)
Adjust bgpctl show fib output. Remove F_DOWN from flags since kroutes can no longer be marked down. Also clean up the flag printing code and printf() and increase the size of destionation and gateway so that more IPv6 addrs fit. OK tb@
Revision 1.19 / (download) - annotate - [select for diffs], Fri Jul 8 16:12:11 2022 UTC (3 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.18: +6 -6 lines
Diff to previous 1.18 (colored)
Use AID_MIN instead of 0 == AID_UNSPEC as foo loop start value where apropriate OK tb@
Revision 1.18 / (download) - annotate - [select for diffs], Thu Jul 7 12:17:57 2022 UTC (3 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.17: +6 -1 lines
Diff to previous 1.17 (colored)
Print dmetric for prefixes, this may still change in the future. OK tb@
Revision 1.17 / (download) - annotate - [select for diffs], Mon Jun 27 13:27:38 2022 UTC (3 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.16: +15 -1 lines
Diff to previous 1.16 (colored)
bgpctl bits for RFC 9234 support. OK tb@
Revision 1.16 / (download) - annotate - [select for diffs], Wed Jun 22 14:49:51 2022 UTC (3 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.15: +6 -25 lines
Diff to previous 1.15 (colored)
Adjust code after changing struct ctl_show_nexthop to embed a struct kroute_full OK tb@
Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 15 10:10:50 2022 UTC (3 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.14: +2 -4 lines
Diff to previous 1.14 (colored)
Adjust after chaning F_BGPD_INSERTED to F_BGPD and removal of F_DYNAMIC
Revision 1.14 / (download) - annotate - [select for diffs], Mon Mar 21 10:16:23 2022 UTC (3 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE,
OPENBSD_7_1
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)
Adjust to renaming of F_CTL_ACTIVE/F_PREF_ACTIVE to F_CTL_ACTIVE/F_PREF_BEST OK tb@
Revision 1.13 / (download) - annotate - [select for diffs], Sun Feb 6 09:52:32 2022 UTC (3 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)
Switch from u_intX_t types to stdint.h uintX_t like it was done in bgpd. OK florian@ tb@
Revision 1.12 / (download) - annotate - [select for diffs], Tue Jul 27 07:42:37 2021 UTC (4 years, 1 month ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0
Changes since 1.11: +21 -3 lines
Diff to previous 1.11 (colored)
Implemnt the RFC8050 in the MRT parser. With this MRT dumps containing add-path information will be dumped properly. There is one bit where this implementation is not in line with the RFC. The encoding of DUMP_V2_RIB_GENERIC_ADDPATH for non IPv4 or IPv6 prefixes is implemented the way gobgp did it (which seems to be the only other BGP implementation that supports generic encoding). The RFC puts the path_id in the NLRI for generic encoding instead of adding it to RIB entry struct like in the IPv4 and IPv6 encoding. This is an open discussion point with the RFC author. OK benno@
Revision 1.11 / (download) - annotate - [select for diffs], Thu May 27 08:29:07 2021 UTC (4 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.10: +50 -5 lines
Diff to previous 1.10 (colored)
Add the bits needed in bgpctl to show the new ADD-PATH and enhanced route refresh capabilities in the neighbor output.
Revision 1.10 / (download) - annotate - [select for diffs], Mon May 3 14:01:56 2021 UTC (4 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.9: +6 -1 lines
Diff to previous 1.9 (colored)
Print the timestamps both formatted and as a time in seconds field in the various JSON object that have time values. OK benno@
Revision 1.9 / (download) - annotate - [select for diffs], Thu Apr 15 14:12:05 2021 UTC (4 years, 5 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE,
OPENBSD_6_9
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)
Fix bgpctl show mrt for UPDATE messages. The call to output->attr() was incorrect. Adjust output->attr() to take a reqflag argument instead of a struct parse_result pointer since that is the only bit needed. Found by and OK procter@, OK deraadt@
Revision 1.8 / (download) - annotate - [select for diffs], Mon Mar 1 08:02:34 2021 UTC (4 years, 6 months ago) by jsg
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)
off by one in bounds test ok claudio@
Revision 1.7 / (download) - annotate - [select for diffs], Tue Feb 16 08:30:21 2021 UTC (4 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.6: +41 -3 lines
Diff to previous 1.6 (colored)
Add `bgpctl show rtr` to display basic information about RTR sessions. OK job@
Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 25 09:17:33 2021 UTC (4 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)
Adjust code since bgpd added an extra argument to aspath_verify() to reject AS_SET segments. In bgpctl this is always off. OK benno@
Revision 1.5 / (download) - annotate - [select for diffs], Wed Dec 30 07:31:19 2020 UTC (4 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.4: +20 -1 lines
Diff to previous 1.4 (colored)
Add 'bgpctl show sets' to display information about the roa-set, as-sets, and prefix-sets loaded into bgpd. OK benno@
Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 21 06:52:45 2020 UTC (4 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)
Include endian.h for htobe64().
Revision 1.3 / (download) - annotate - [select for diffs], Sun May 10 13:38:46 2020 UTC (5 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE,
OPENBSD_6_8
Changes since 1.2: +5 -5 lines
Diff to previous 1.2 (colored)
In bgpctl argument parser, re-arrange 'reason' parsing ('nei action [reason]') to be more generic, then change 'reload' to take take a '[reason]' also, which will be logged by bgpd. ok kn claudio
Revision 1.2 / (download) - annotate - [select for diffs], Sun May 3 18:34:34 2020 UTC (5 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.1: +4 -2 lines
Diff to previous 1.1 (colored)
Correctly name max_out_prefix and don't clobber the max_prefix value. Also include the group name in the general neighbor description. Both issues reported by Patrick Velder OK deraadt@
Revision 1.1 / (download) - annotate - [select for diffs], Sat May 2 14:33:33 2020 UTC (5 years, 4 months ago) by claudio
Branch: MAIN
Add support to output data in JSON. This is still work in progress and the output structures may still change but it should be a good starting point for poeple to start playing with it. OK benno@, job@, deraadt@