OpenBSD CVS

CVS log for src/usr.sbin/bgpctl/Attic/irr_asset.c


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

Request diff between arbitrary revisions


Default branch: MAIN


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

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

Revision 1.11 / (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_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
Changes since 1.10: +1 -2 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Wed Oct 8 16:15:37 2014 UTC (9 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +7 -7 lines
Diff to previous 1.9 (colored)

Use reallocarray() throughout to spot multiplicative int overflow.
ok henning benno

Revision 1.9 / (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.8: +5 -4 lines
Diff to previous 1.8 (colored)

unsigned char casts where needed for for ctype.h
checked by florian

Revision 1.8 / (download) - annotate - [select for diffs], Tue Apr 14 21:10:54 2009 UTC (15 years, 2 months ago) by jj
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
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Fixed a few the-the misspellings in comments. Skipped a bunch in binutils,gcc and so on. ok jmc@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Mar 31 12:46:55 2007 UTC (17 years, 2 months ago) by henning
Branch: MAIN
CVS Tags: 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
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

some KNF, partially pt out by  rivo nurges <rix@estpak.ee>

Revision 1.6 / (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_1_BASE, OPENBSD_4_1
Changes since 1.5: +7 -1 lines
Diff to previous 1.5 (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.5 / (download) - annotate - [select for diffs], Mon Mar 5 21:08:22 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.4: +46 -13 lines
Diff to previous 1.4 (colored)

correctly deal with hierarchical as-set names.
everything we run into as members that is hierarchical (contains :) has to
be an as-set. RPSL requires one component to have the AS- prefix; we check
that.
now the huge AS-TELIANET correctly resolves - into 15128 unique ASes, takes
12m47.11s real     0m8.62s user     0m1.07s system

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 5 19:30:46 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.3: +22 -9 lines
Diff to previous 1.3 (colored)

convert all members of an as-set to uppercase on the fly.
do the same in asset_expand() for the head as-set or aut-num reference from
the policy.
fixes duplicate ASes with mixed case seen after set resolution and saves
some str(n)casecmp on the way (or rather allows a whole bunch of strcmp to
stay)

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

unused vars, lint

Revision 1.2 / (download) - annotate - [select for diffs], Sat Mar 3 15:26:46 2007 UTC (17 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.1: +22 -14 lines
Diff to previous 1.1 (colored)

as-sets always begin with AS-, and aut-nums with AS[0-9], mandated by the
RPSL spec and enforced by the IRR databases.
teach asset_get this fact. only send queries for the as-set members for
as-sets.
since we now always fake an as-set for aut-nums, we don't need to
escape the recursive as-set resolution process when we run into aut-num
members.
complain about and then ignore unresolvable as-set members.

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.