summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/irr_parser.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove irrfilter from bgpctl. The current code is not very useful.claudio2019-06-251-423/+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@
* Instead of a (ulong) case just use %zu in printf and remove the cast.claudio2019-04-101-2/+2
| | | | | Helps portable. OK deraadt@
* some people are capitalizing keywords, so ignore case when we test the tokensphessler2015-04-251-9/+9
| | | | OK henning@ benno@
* handle an IRR record of "export ... action X" the same way we handlephessler2015-04-251-1/+3
| | | | | | "import ... action X". OK benno@ henning@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+2
| | | | | | | | | 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
* strip trailing \r from rpsl route: lines for irrfilter, they have been seensthen2012-06-301-3/+4
| | | | in the wild and break parsing. ok henning@
* Update irrfilter to support IPv6 and 4-byte AS numbers. IPv6 support basedclaudio2009-09-081-3/+5
| | | | on work by Tonnerre Lombard I just cleaned it up. OK henning, sthen
* RPSL spec says route: is single-valued... nontheless, in the APNIC db:henning2007-03-051-6/+12
| | | | | | route: 203.94.216.0/21, origin: AS17813 so we need to cut trailing ',' away
* need to eat whitespace at both ends of valhenning2007-03-051-8/+6
|
* KNFhenning2007-03-051-8/+9
|
* store peer AS numericallyhenning2007-03-041-4/+15
|
* 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>
* ran into an asset which has dangling , at eol in the member spec, leadinghenning2007-03-041-2/+3
| | | | | | | to us trying to add an empty-string AS, which asset_get later complains about. in parse_asset, check that we're no dealing with a empty string token before calling asset_addmember
* make parse_response (and thus whois) return 0 for no object found, and n+1henning2007-03-031-2/+8
| | | | | for object found with n matched attributes. this way we can distinguish between no object found and object without relevant attributes
* add irrfilter mode.henning2007-03-031-0/+395
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