From 6b7f7cc3ff9590caa858808fb47f0a82ad17f8fc Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Fri, 22 Apr 2016 07:05:47 +0300 Subject: flowtop: Fix compilation error when build without geoip 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 Signed-off-by: Vadim Kochan Signed-off-by: Tobias Klauser --- 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 */ -- cgit v1.2.3-54-g00ecf