OpenBSD CVS

CVS log for src/usr.sbin/bgpctl/Makefile


[BACK] Up to [local] / src / usr.sbin / bgpctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 20 14:01:50 2023 UTC (13 months, 3 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

Implement bgpctl show flowspec and bgpctl flowspec flush.

This uses the flowspec.c file from bgpd and implements the output
for flowspec only for the text printer for now. That code uses a lot
of code from printconf.c
OK tb@

Revision 1.18 / (download) - annotate - [select for diffs], Mon Oct 17 12:01:19 2022 UTC (19 months, 3 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (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.17 / (download) - annotate - [select for diffs], Sat May 2 14:33:33 2020 UTC (4 years, 1 month ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

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@

Revision 1.16 / (download) - annotate - [select for diffs], Fri Dec 20 09:16:05 2019 UTC (4 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Split out show functions into a new file called output.c
OK benno@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jun 25 07:44:20 2019 UTC (4 years, 11 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.14: +2 -4 lines
Diff to previous 1.14 (colored)

Remove irrfilter from bgpctl. The current code is not very useful.
Trying to parse RPSL has shown to be impossible. For now tools like
bgpq3 (in ports) can be used to generate AS and prefix sets based on
IRR data.
OK job@ deraadt@ sthen@ benno@

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 13 15:02:40 2018 UTC (5 years, 10 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

explicitly link libm for sqrt()/fmax() calls added in bgpctl.c rev 1.204

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 23 23:37:21 2017 UTC (7 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Kill the timer.c reacharound it is not needed.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Sep 21 10:37:51 2011 UTC (12 years, 8 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Make it possible to parse MRT table dumps (all 3 formats) and display
them like the show rib / show rib detail output. It is also possible
to filter the output. e.g.
   bgpctl show mrt file ./bview.20110914.1600 as 22512 204.209.0.0/16 all
OK sthen@, put it in henning@

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 26 16:44:32 2010 UTC (14 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Move imsg into libutil and add a man page.

Minor bump for libutil.

Previous versions of this diff and man page looked at by various people.

"you should just commit" deraadt

Revision 1.10 / (download) - annotate - [select for diffs], Thu Dec 20 17:08:48 2007 UTC (16 years, 5 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

rework timers.
stop changing tienmr values directly, always use new
timer_(get/set/stop/running) functions. preparation for more to come :)
ok claudio

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 3 11:45:30 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)

add irrfilter mode.
generates bgpd filter rules from the Internet Routing Registry aka IRR aka
the aut-num, as-set and route objects in the RIPE, ARIN, APNIC ... databases
accessed via whois, using the Routing Policy Specificaion Language RPSL.
implement the whois query interface, an RPSL parser (of course only the
parts we need), recursive as-set resolver, prefixes per AS lookup,
and an ouput module to make up the rules.
work in progress, not ready for general consumption yet.
import agreed by theo & claudio

Revision 1.8 / (download) - annotate - [select for diffs], Sun Nov 26 11:31:12 2006 UTC (17 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

repair missing DPADD requests

Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 17 16:46:38 2006 UTC (17 years, 9 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Remove -Wredundant-decls from CFLAGS

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 25 09:44:49 2006 UTC (17 years, 10 months ago) by henning
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

amazing how far a typo of mine (CFLAGS vs CLFAGS) from early 2004 spread
(and how long it went unnoticed)
From: Alexey Dobriyan <adobriyan@gmail.com>

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 3 22:51:13 2006 UTC (18 years, 5 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

Show RIB statistics via "bgpctl show rib mem".

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jan 3 22:20:59 2006 UTC (18 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Cope with new util.c

Revision 1.3 / (download) - annotate - [select for diffs], Thu Feb 26 16:19:58 2004 UTC (20 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Implement "show rib" and "show rib <astype> <AS>" commands to dump the
RIB. OK henning@

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jan 21 23:45:18 2004 UTC (20 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

new parser.
completely table driven and not wired into the action code like the
previous parser...
i wanted to do this for some time, and now it was just due.

ok claudio@

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jan 2 02:22:52 2004 UTC (20 years, 5 months ago) by henning
Branch: MAIN

bring back bgpctl
ok and help theo

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.