type ASN uint32
jusmarks opened this issue · comments
Should change type ASN int
to type ASN uint32
https://www.arin.net/resources/guide/asn/
A 4-byte ASN is a 32-bit number. This format provides for 2^32 or 4,294,967,296 ASNs (0 to 4294967295).
https://datatracker.ietf.org/doc/html/rfc6793#section-8
... the InetAutonomousSystemNumber textual convention [RFC4001] is defined as Unsigned32.
int
could be either 32 or 64 bits depending on the system. If 32 bits then its range (-2147483648 to 2147483647) would be insufficient to cover the full 4-byte ASN range.