From 5160c9212e0e55e0dc518aadca0e6a370cf1420d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 27 May 2014 10:59:52 +0200 Subject: 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 --- flowtop.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'flowtop.c') 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; } -- cgit v1.2.3-54-g00ecf