summaryrefslogtreecommitdiff
path: root/geoip.h
blob: 2098ef8cbe0f32ab66c8787152e073b550102552 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * netsniff-ng - the packet sniffing beast
 * Copyright 2013 Daniel Borkmann.
 * Subject to the GPL, version 2.
 */

#ifndef GEOIPH_H
#define GEOIPH_H

#include <netinet/in.h>

extern void init_geoip(int enforce);
extern void update_geoip(void);
extern int geoip_working(void);
extern const char *geoip4_city_name(struct sockaddr_in sa);
extern const char *geoip6_city_name(struct sockaddr_in6 sa);
extern const char *geoip4_region_name(struct sockaddr_in sa);
extern const char *geoip6_region_name(struct sockaddr_in6 sa);
extern const char *geoip4_country_name(struct sockaddr_in sa);
extern const char *geoip6_country_name(struct sockaddr_in6 sa);
extern float geoip4_longitude(struct sockaddr_in sa);
extern float geoip4_latitude(struct sockaddr_in sa);
extern float geoip6_longitude(struct sockaddr_in6 sa);
extern float geoip6_latitude(struct sockaddr_in6 sa);
extern const char *geoip4_as_name(struct sockaddr_in sa);
extern const char *geoip6_as_name(struct sockaddr_in6 sa);
extern void destroy_geoip(void);

#endif /* GEOIPH_H */
amp;id=2f6fdefb3503ff0600b5435c0c9ce43cb50d3f1a'>a2e884fae97db04ff51d38f76e3d1d91893d4497 /Documentation parenta3ff9582369e71439ad2bf40e70474b9f1b85c55 (diff)
spi: dw-mmio: remove message which is handled by core
devm_ioremap_resource() validates its parameters and issues an error message if needed. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation')