summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/irr_output.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove irrfilter from bgpctl. The current code is not very useful.claudio2019-06-251-246/+0
| | | | | | | 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@
* Rename struct as_set to struct irr_as_set to not conflict with bgpd.claudio2018-09-171-2/+2
| | | | OK $CC
* err(1, "foo") -> err(1, NULL) for strdup()mmcc2015-11-181-2/+2
|
* these 3 files do not need sys/socket.hderaadt2015-10-051-2/+1
|
* for every policy we write out, flush the output so we don't get anphessler2015-04-261-1/+2
| | | | irritating partially written line
* allow us to write rules that match directly on the peer ASphessler2015-04-251-3/+6
| | | | | | | | | | | | | ... 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@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+1
| | | | | | | | | 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)
* unsigned char casts where needed for for ctype.hderaadt2013-11-221-2/+2
| | | | checked by florian
* If a constant string needs a name, use a static const array instead of aguenther2013-10-271-3/+3
| | | | | | | | 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@
* KNFhenning2007-03-051-3/+3
|
* unused vars, linthenning2007-03-051-3/+2
|
* store a maxlen with each prefix. if that is set, this prefix covershenning2007-03-051-2/+9
| | | | | | 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)
* prevent re-use of shit in pbuf from previous ruleshenning2007-03-051-1/+2
|
* rename struct prefix -> irr_prefixhenning2007-03-041-3/+3
|
* store prefixes in binary format. we'll need that for aggregation.henning2007-03-041-12/+26
| | | | discussed with pyr
* for import rules, filter by source-as toohenning2007-03-041-11/+24
|
* store peer AS numericallyhenning2007-03-041-3/+2
|
* pass pointer to struct policy_item down to print_rule() instead of 3 of itshenning2007-03-041-12/+10
| | | | members
* fix output format. spent too much time with RPSL...henning2007-03-041-5/+5
|
* fix cass where the specification does not give the router address by usinghenning2007-03-041-2/+2
| | | | | | "" 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>
* write output to files instead of stdouthenning2007-03-031-10/+40
|
* add irrfilter mode.henning2007-03-031-0/+183
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