Hello,
On 4 Mar 2023, at 11:00, Gisle Vanem gvanem@online.no wrote:
Michael Tremer wrote:
So shouldn't the function be:
static int __loc_network_tree_count(struct loc_network* network, void* data) { size_t* counter = (size_t*)data;
// Increase the counter for each network (*counter)++; return 0;
Yes, you are incorrect. I am incrementing the pointer when I wanted to increment the value.
You mean "you are correct"?
Thank you for helping to improve libloc. How does it run on Windows?
I doesn't run at all w/o much patching by myself. I've added support for it and 'location.db' files in my project Wsock-trace: https://github.com/gvanem/wsock-trace
The patched up 'libloc' version: https://github.com/gvanem/wsock-trace/tree/master/src/Geo-IP/IPFire/src
Do you intend to upstream those changes at some point (if that is possible)?
-- --gv