OpenBSD CVS

CVS log for src/usr.sbin/bgpctl/Attic/irrfilter.h


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11, Tue Jun 25 07:44:20 2019 UTC (4 years, 11 months ago) by claudio
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +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.10 / (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.9: +4 -4 lines
Diff to previous 1.9 (colored)

Rename struct as_set to struct irr_as_set to not conflict with bgpd.
OK $CC

Revision 1.9 / (download) - annotate - [select for diffs], Tue Sep 8 16:11:36 2009 UTC (14 years, 8 months ago) by sthen
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, 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, 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
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)

Add -4 and -6 flags to irrfilter mode, allowing you to only fetch (you
guessed it) v4 or v6 from the IRR.  Reduces size of the filter file (and
thus router resource use) when you only speak IPv4 but you want to
filter peers who announce lots of v6 space.  ok claudio@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Sep 8 15:40:25 2009 UTC (14 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.7: +5 -3 lines
Diff to previous 1.7 (colored)

Update irrfilter to support IPv6 and 4-byte AS numbers. IPv6 support based
on work by Tonnerre Lombard I just cleaned it up. OK henning, sthen

Revision 1.7 / (download) - annotate - [select for diffs], Tue Mar 6 16:45:34 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
CVS Tags: 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.6: +2 -1 lines
Diff to previous 1.6 (colored)

prepare, but leave disabled, verbose operation so that you can see what is
going on (helps when the damn thing runs for hours). will be enabled with
a -v somewhen in the future

Revision 1.6 / (download) - annotate - [select for diffs], Mon Mar 5 16:43:24 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

gremlins keep putting tiny KNF violations in my code in the hope I don't
spot 'em

Revision 1.5 / (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.4: +2 -1 lines
Diff to previous 1.4 (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.4 / (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.3: +3 -3 lines
Diff to previous 1.3 (colored)

rename struct prefix -> irr_prefix

Revision 1.3 / (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.2: +11 -2 lines
Diff to previous 1.2 (colored)

store prefixes in binary format. we'll need that for aggregation.
discussed with pyr

Revision 1.2 / (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.1: +3 -3 lines
Diff to previous 1.1 (colored)

store peer AS numerically

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

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.