"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/geoip2.c" between
goaccess-1.7.1.tar.gz and goaccess-1.7.2.tar.gz

About: GoAccess is a real-time web log analyzer and interactive viewer ("text-based").

geoip2.c  (goaccess-1.7.1):geoip2.c  (goaccess-1.7.2)
skipping to change at line 322 skipping to change at line 322
status = MMDB_aget_value (&res.entry, name, key); status = MMDB_aget_value (&res.entry, name, key);
if (status != MMDB_SUCCESS || !name->has_data) if (status != MMDB_SUCCESS || !name->has_data)
return 1; return 1;
} }
return 0; return 0;
} }
/* A wrapper to fetch the looked up result and set the ASN organization & code. /* A wrapper to fetch the looked up result and set the ASN organization & code.
* *
* If no data is found, "Uknown" is set. * If no data is found, "Unknown" is set.
* On success, the fetched value is set. */ * On success, the fetched value is set. */
void void
geoip_asn (char *host, char *asn) { geoip_asn (char *host, char *asn) {
MMDB_lookup_result_s res = { 0 }; MMDB_lookup_result_s res = { 0 };
MMDB_entry_data_s name = { 0 }; MMDB_entry_data_s name = { 0 };
MMDB_entry_data_s code = { 0 }; MMDB_entry_data_s code = { 0 };
int status = 1; int status = 1;
geoip_lookup (&res, host, 1); geoip_lookup (&res, host, 1);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)