Up to [local] / src / usr.sbin / bgpctl
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.22, Tue Jun 25 07:44:20 2019 UTC (4 years, 11 months ago) by claudio
Branch: MAIN
CVS Tags: HEAD
Changes since 1.21: +1 -1 lines
FILE REMOVED
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.21 / (download) - annotate - [select for diffs], Mon Sep 17 13:35:36 2018 UTC (5 years, 8 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)
Rename struct as_set to struct irr_as_set to not conflict with bgpd. OK $CC
Revision 1.20 / (download) - annotate - [select for diffs], Wed Nov 18 16:47:04 2015 UTC (8 years, 6 months ago) by mmcc
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,
OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)
err(1, "foo") -> err(1, NULL) for strdup()
Revision 1.19 / (download) - annotate - [select for diffs], Mon Oct 5 14:18:33 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)
these 3 files do not need sys/socket.h
Revision 1.18 / (download) - annotate - [select for diffs], Sun Apr 26 11:32:54 2015 UTC (9 years, 1 month ago) by phessler
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)
for every policy we write out, flush the output so we don't get an irritating partially written line
Revision 1.17 / (download) - annotate - [select for diffs], Sat Apr 25 15:28:18 2015 UTC (9 years, 1 month ago) by phessler
Branch: MAIN
Changes since 1.16: +6 -3 lines
Diff to previous 1.16 (colored)
allow us to write rules that match directly on the peer AS ... allow from AS 1 prefix 192.0.2.0/24 ... Also adjust the IRR ruleset output to include the declared peer AS, instead of hoping they listed their neighbor IP address! OK benno@ older version OK: claudio@ henning@
Revision 1.16 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:15 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored)
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
Revision 1.15 / (download) - annotate - [select for diffs], Fri Nov 22 15:15:16 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)
unsigned char casts where needed for for ctype.h checked by florian
Revision 1.14 / (download) - annotate - [select for diffs], Sun Oct 27 18:49:25 2013 UTC (10 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)
If a constant string needs a name, use a static const array instead of a pointer or non-const array, as that minimizes the symbols, maximizes the placement into read-only memory, and avoids warnings from gcc -Wformat=2 when they're used as format strings. ok deraadt@
Revision 1.13 / (download) - annotate - [select for diffs], Mon Mar 5 17:28:21 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
CVS Tags: 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,
OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8,
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,
OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)
KNF
Revision 1.12 / (download) - annotate - [select for diffs], Mon Mar 5 15:02:05 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.11: +2 -3 lines
Diff to previous 1.11 (colored)
unused vars, lint
Revision 1.11 / (download) - annotate - [select for diffs], Mon Mar 5 11:07:47 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.10: +9 -2 lines
Diff to previous 1.10 (colored)
store a maxlen with each prefix. if that is set, this prefix covers multiple route objects (i. e. is the result of maksing out longer prefixes or aggregation we'll do later). if maxlen is > prefixlen, generate rules accordingly (prefixlen <= maxlen)
Revision 1.10 / (download) - annotate - [select for diffs], Mon Mar 5 10:10:40 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)
prevent re-use of shit in pbuf from previous rules
Revision 1.9 / (download) - annotate - [select for diffs], Sun Mar 4 20:31:22 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)
rename struct prefix -> irr_prefix
Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 4 20:05:11 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.7: +26 -12 lines
Diff to previous 1.7 (colored)
store prefixes in binary format. we'll need that for aggregation. discussed with pyr
Revision 1.7 / (download) - annotate - [select for diffs], Sun Mar 4 18:40:08 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.6: +24 -11 lines
Diff to previous 1.6 (colored)
for import rules, filter by source-as too
Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 4 18:13:13 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.5: +2 -3 lines
Diff to previous 1.5 (colored)
store peer AS numerically
Revision 1.5 / (download) - annotate - [select for diffs], Sun Mar 4 17:47:31 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.4: +10 -12 lines
Diff to previous 1.4 (colored)
pass pointer to struct policy_item down to print_rule() instead of 3 of its members
Revision 1.4 / (download) - annotate - [select for diffs], Sun Mar 4 17:03:01 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored)
fix output format. spent too much time with RPSL...
Revision 1.3 / (download) - annotate - [select for diffs], Sun Mar 4 12:37:07 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)
fix cass where the specification does not give the router address by using "" instead of defaulting to NULL, which is a pain to handle afterwards. in the output function, treat empty string address like NULL address problem noticed by rivo nurges <rix@estpak.ee>
Revision 1.2 / (download) - annotate - [select for diffs], Sat Mar 3 12:41:13 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.1: +40 -10 lines
Diff to previous 1.1 (colored)
write output to files instead of stdout
Revision 1.1 / (download) - annotate - [select for diffs], Sat Mar 3 11:45:30 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
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