diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2016-04-22 07:05:47 +0300 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-04-22 09:43:50 +0200 |
commit | 6b7f7cc3ff9590caa858808fb47f0a82ad17f8fc (patch) | |
tree | fa0b8421d955cf6bee1fe6801a291ec6aa0c9380 /geoip.h | |
parent | bb9eb3eaa03eecbf169489d3be83ddccf7b77815 (diff) |
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 <daniel@iogearbox.net>
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'geoip.h')
-rw-r--r-- | geoip.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 */ |