maxmind / mmdbwriter

Go library for writing MaxMind DB (mmdb) files
Apache License 2.0
116 stars 28 forks source link

ASN information of some IP segments cannot be inserted! #26

Closed ScXin closed 3 years ago

ScXin commented 3 years ago

Hi,

I am going to use this repo to generate the self-defined ASN mmdb file. However, I have met a problem that some ip ranges(such as: 10.100.64.0/24) can not be inserted because of error comes. The error follows:

/private/var/folders/sg/348d2cj950jd2989xn9wrmk40000gn/T/___go_build_github_com_maxmind_mmdbwriter_examples_asn_writer
2021/08/28 18:24:56 attempt to insert ::a64:4000/120, which is in a reserved network

I check this code and find the code lines of error comes. But,I cannot understand why this ip ranges can not allowed to insert,can you give me some help. I am appreciated of you!

Mark.