3 Commits

Author SHA1 Message Date
Olaf Baumert
eeb538bcde fix: Correct SCION AS to decimal conversion logic
- Remove incorrect ISD:AS:Instance interpretation
- SCION AS format is three 16-bit hex values (48-bit total)
- Only convert to decimal if result is within BGP range (0 to 2^32-1)
- Example: 0:1:f = (0<<32) + (1<<16) + 15 = 65551
- AS numbers like 2:0:17 exceed BGP range and remain in hex format
2025-06-03 11:08:16 +00:00
Olaf Baumert
7f548110ff feat: Add automatic decimal AS number conversion for SCION AS entries
- Implement scion_as_to_decimal() function in both add-as and add-as-batch scripts
- Automatically converts SCION AS format (ISD:AS:Instance) to decimal when in BGP range
- Handles both ISD:AS:Instance format and colon-separated hex format
- Follows SCION AS numbering specification from https://github.com/scionproto/scion/wiki/ISD-and-AS-numbering
2025-06-03 11:04:25 +00:00
Olaf Baumert
34c631a06d Initial commit: mwhois with SCION AS support and decimal AS conversion
Based on mwhois by Antonios A. Chariton
Modifications for SCION AS support by Olaf Baumert, Axpo Systems AG
2025-06-03 11:01:02 +00:00