This is the announcement for release of libloc 0.9.9.
This release comes with some feature enhancements and various bug fixes.
https://git.ipfire.org/?p=location/libloc.git;a=shortlog;h=refs/tags/0.9.9
https://source.ipfire.org/releases/libloc/libloc-0.9.9.tar.gz
API Changes:
* loc_country_special_code_to_flag has been added and will translate any special country codes (A1, A2, …) into flags if such flags are available.
* loc_network_matches_country_code can now handle any special country codes. This is useful when people want to use special country codes (A1, …) and the library will automatically perform a check for the flag. This is useful when integrating libloc into other applications and we add more special country codes which the application no longer needs to be aware of.
* loc_database_lookup takes the address as a constified argument
* loc_network_match_address/country_code have been renamed to loc_network_matches_address/country code (match -> matches).
* loc_network_match_flag has been dropped. Use loc_network_has_flag.
* All string pool and network tree functions have been made private. There is no need to export them.
Importer:
* We now import a feed from JPNIC.
* We import Spamhaus DROP and mark such networks/ASes with the DROP flag (or XD).
Performance improvements:
* The entire library is now being build with -fno-semantic-interposition if the compiler supports it.
This prevents users from overlaying any functions, but allows the compiler to inline more functions which will increase performance of all database operations potentially at the cost of a slightly larger size.
Misc.
* A statically linked version of the database is being generated in order to test internal functions in the test suite.
* All country codes beginning with X are now considered invalid. X is reserved for custom country codes and therefore not recognised any more.