summaryrefslogtreecommitdiff
path: root/flowtop.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-05-27 10:59:52 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-05-27 10:59:52 +0200
commit5160c9212e0e55e0dc518aadca0e6a370cf1420d (patch)
treeb5fb172ab10010321fb383b2aa3b8e0c058a0da7 /flowtop.c
parent2e7e42af61fea74bfbb40abdc8318366638672fb (diff)
geoip: Pass struct sockaddr_in{,6} as pointer instead of by value
Change the interface to the geoip_* functions to take a pointer to a struct sockaddr_in{,6} instead of the struct itself. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'flowtop.c')
-rw-r--r--flowtop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/flowtop.c b/flowtop.c
index 5f7b7d5..ce43d93 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -595,12 +595,12 @@ flow_entry_geo_city_lookup_generic(struct flow_entry *n,
case AF_INET:
flow_entry_get_sain4_obj(n, dir, &sa4);
- city = geoip4_city_name(sa4);
+ city = geoip4_city_name(&sa4);
break;
case AF_INET6:
flow_entry_get_sain6_obj(n, dir, &sa6);
- city = geoip6_city_name(sa6);
+ city = geoip6_city_name(&sa6);
break;
}
@@ -629,12 +629,12 @@ flow_entry_geo_country_lookup_generic(struct flow_entry *n,
case AF_INET:
flow_entry_get_sain4_obj(n, dir, &sa4);
- country = geoip4_country_name(sa4);
+ country = geoip4_country_name(&sa4);
break;
case AF_INET6:
flow_entry_get_sain6_obj(n, dir, &sa6);
- country = geoip6_country_name(sa6);
+ country = geoip6_country_name(&sa6);
break;
}