Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

rir-ip / iso3166 and EU #13

codiak6335 started this conversation in General
May 9, 2025 · 3 comments · 2 replies
Discussion options

Per ISO 3166, 'EU' is not a defined country code as the rir-ip breakout would suggest:

{
"country": "European Union",
"country-code": "EU",
"delegation-status": [
"allocated",
"assigned"
],
"mode": "aggregated",
"subnets": {
"ipv4": [
"138.199.64.0/20",
"139.191.0.0/16",
"144.44.0.0/16",
"145.218.0.0/16",
"151.175.0.0/16",
"158.67.0.0/16",
"192.84.203.0/24",
"192.108.27.0/24",
"192.108.28.0/23",
"192.108.30.0/24"
],
"ipv6": []
}

You must be logged in to vote

Replies: 3 comments 2 replies

Comment options

Since it's in a reserved status in https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#EU I don't see a problem here.

You must be logged in to vote
1 reply
Comment options

In general I understand and appreciate your statement.

I ran into an issue while updating some legacy code that indexes on country-code not the alpha-2 field.
It's easy enough to inject arbitrary values for the missing fields, and still call out the data exceptions.

Unfortunately, without standard values I'll need exceptions for other IP location tools as well.

Comment options

Are you parsing the list of subdirectory entries in the country directory? If so, why don't you just omit EU?

You must be logged in to vote
1 reply
Comment options

Considered that too, but the code base is attempting to sequentially map the entire IP range. Given the ranges appear unallocated the method I use at this time is of little consequence. It's just a data anomaly.

Comment options

The EU's gone for good ;-)

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /