Commit (f61f39d geoip: Allow to get country 3-code) added new helpers without considering HAVE_GEOIP definition.
Fixed by adding dummy functions for get 3-code country name in case if HAVE_GEOIP is not defined. Tested only by manualy disabling HAVE_GEOIP in config.h and geoip.c compilation in Config file. Fixes: f61f39d (geoip: Allow to get country 3-code) Reported-by: Daniel Borkmann <[email protected]> Signed-off-by: Vadim Kochan <[email protected]> --- geoip.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/geoip.h b/geoip.h index 0cbd619..5d5c221 100644 --- a/geoip.h +++ b/geoip.h @@ -104,6 +104,16 @@ static inline const char *geoip6_as_name(struct sockaddr_in6 *sa) { return NULL; } + +static inline const char *geoip4_country_code3_name(struct sockaddr_in *sa) +{ + return NULL; +} + +static inline const char *geoip6_country_code3_name(struct sockaddr_in6 *sa) +{ + return NULL; +} #endif #endif /* GEOIPH_H */ -- 2.6.3 -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
