Understand the MMDB_lookup_result_s structure
mainThe MMDB_lookup_result_s structure contains the results of an IP lookup:
found_entry: A boolean indicating if the IP was found in the database. Always check this first.entry: AnMMDB_entry_sused to retrieve the actual data associated with the IP.netmask: The subnet mask for the IP.- For IPv4 databases, this is the prefix length (e.g., 16 for
1.1.0.0/16). - For IPv6 databases, this is the prefix length (0-128). If you need to convert an IPv6 netmask to an IPv4 netmask, subtract 96 from the value.
- For IPv4 databases, this is the prefix length (e.g., 16 for