Commit graph

21 commits

Author SHA1 Message Date
netravnen 9c783336e6 lib: add constants.php to hold ALL constants. Instead of stuffing contants into define.php 2019-01-05 22:55:25 +00:00
netravnen 88ae0edd07 BUG: fix roagenerator to be compliant with RFC 6483 section 4.
Changed maxlength to be either 32 (v4) or 128 (v6) when AS0 is set as origin ASN.

"""
4.  Disavowal of Routing Origination

   A ROA is a positive attestation that a prefix holder has authorized
   an AS to originate a route for this prefix into the inter-domain
   routing system.  It is possible for a prefix holder to construct an
   authorization where no valid AS has been granted any such authority
   to originate a route for an address prefix.  This is achieved by
   using a ROA where the ROA's subject AS is one that must not be used
   in any routing context.  Specifically, AS 0 is reserved by the IANA
   such that it may be used to identify non-routed networks [IANA-AS].

   A ROA with a subject of AS 0 (AS 0 ROA) is an attestation by the
   holder of a prefix that the prefix described in the ROA, and any more
   specific prefix, should not be used in a routing context.

   The route validation procedure, described in Section 2, will provide
   a "valid" outcome if any ROA matches the address prefix and origin
   AS, even if other valid ROAs would provide an "invalid" validation
   outcome if used in isolation.  Consequently, an AS 0 ROA has a lower
   relative preference than any other ROA that has a routable AS as its
   subject.  This allows a prefix holder to use an AS 0 ROA to declare a
   default condition that any route that is equal to or more specific
   than the prefix to be considered "invalid", while also allowing other
   concurrently issued ROAs to describe valid origination authorizations
   for more specific prefixes.

   By convention, an AS 0 ROA should have a maxLength value of 32 for
   IPv4 addresses and a maxlength value of 128 for IPv6 addresses;
   although, in terms of route validation, the same outcome would be
   achieved with any valid maxLength value, or even if the maxLength
   element were to be omitted from the ROA.

   Also by convention, an AS 0 ROA should be the only ROA issued for a
   given address prefix; although again, this is not a strict
   requirement.  An AS 0 ROA may coexist with ROAs that have different
   subject AS values; although in such cases, the presence or lack of
   presence of the AS 0 ROA does not alter the route's validity state in
   any way.
"""
2019-01-05 22:38:59 +00:00
netravnen 80185affeb misc: update all outputs to ONLY look for last MERGE commit instead of THE LAST commit 2019-01-05 18:02:18 +00:00
netravnen 897536b105 rfc8416.php, roagen.php: add full url to commit in _comments 2019-01-04 09:34:25 +00:00
netravnen 72a09ef39c rfc8416: update comment field to use url to registry on web 2019-01-04 09:34:25 +00:00
netravnen f6ad6102e6 misc: updated JSON file to include a _comments section for when file was last modified 2019-01-04 09:34:25 +00:00
netravnen 585b867394 lib: add constants to define max-length
o MAX_LEN_IPV4
o MAX_LEN_IPV6
2019-01-04 09:34:25 +00:00
netravnen 4ccbe9fbfa roagen: updated to be compliant with current DN42 filtering rules 2019-01-04 09:34:25 +00:00
netravnen 3cd8ba21a5 Move update functions to update.sh 2019-01-04 09:34:25 +00:00
netravnen c93b4f6585 roagen: match for route6 string in route6 objects 2019-01-04 09:34:25 +00:00
netravnen ce523ae748 lib: move {functions,define}.php int lib/ 2019-01-04 09:34:25 +00:00
netravnen 690d942fc8 Move JSON encoding of array() to _functions lib 2019-01-04 09:34:25 +00:00
netravnen 6f08a272fd Bug: fix error in write* functions 2019-01-04 09:34:25 +00:00
netravnen 8e1420558e Update rfc8416.php to use shared functions and constants 2019-01-04 09:34:24 +00:00
netravnen eccf0ce24b Update rfc8416.php to do JSON_NUMERIC_CHECK when encoding into json array 2019-01-04 09:34:24 +00:00
netravnen 1612397f30 Update rfc8416.php 2019-01-04 09:34:24 +00:00
netravnen 2cbb8fdf07 Update rfc8416.php to populate locallyAddedAssertions > bgpsecAssertions with asn,comment,SKI,routerPublicKey, too. 2019-01-04 09:34:24 +00:00
netravnen f7aba9160a Update rfc8416.php update.sh 2019-01-04 09:34:24 +00:00
netravnen ebc4055b81 Update rfc8416.php comment field
updated comments for locallyAddedAssertions > prefixAssertions.
2019-01-04 09:34:13 +00:00
netravnen 56145bb844 Update rfc8416.php 2019-01-04 09:34:13 +00:00
netravnen edb92277b3 Added rfc8416.php
Is trying to get the hang of generating a local exception list
for use with routinator by NLnet Labs.

- NLnet Labs:  https://nlnetlabs.nl/
- Routinator:  https://github.com/NLnetLabs/routinator
- RFC:         https://tools.ietf.org/html/rfc8416
2019-01-04 09:34:13 +00:00