netsniff-ng: remove set_sockopt_hwtimestamp call
[netsniff-ng.git] / geoip.h
blob2098ef8cbe0f32ab66c8787152e073b550102552
1 /*
2 * netsniff-ng - the packet sniffing beast
3 * Copyright 2013 Daniel Borkmann.
4 * Subject to the GPL, version 2.
5 */
7 #ifndef GEOIPH_H
8 #define GEOIPH_H
10 #include <netinet/in.h>
12 extern void init_geoip(int enforce);
13 extern void update_geoip(void);
14 extern int geoip_working(void);
15 extern const char *geoip4_city_name(struct sockaddr_in sa);
16 extern const char *geoip6_city_name(struct sockaddr_in6 sa);
17 extern const char *geoip4_region_name(struct sockaddr_in sa);
18 extern const char *geoip6_region_name(struct sockaddr_in6 sa);
19 extern const char *geoip4_country_name(struct sockaddr_in sa);
20 extern const char *geoip6_country_name(struct sockaddr_in6 sa);
21 extern float geoip4_longitude(struct sockaddr_in sa);
22 extern float geoip4_latitude(struct sockaddr_in sa);
23 extern float geoip6_longitude(struct sockaddr_in6 sa);
24 extern float geoip6_latitude(struct sockaddr_in6 sa);
25 extern const char *geoip4_as_name(struct sockaddr_in sa);
26 extern const char *geoip6_as_name(struct sockaddr_in6 sa);
27 extern void destroy_geoip(void);
29 #endif /* GEOIPH_H */