geoip: Add a lookup function for client map entry
commit93b826faaa7cca351c68256ce60a7f7e6c5fda5b
authorDavid Goulet <dgoulet@torproject.org>
Thu, 25 Jan 2018 20:44:48 +0000 (25 15:44 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Thu, 25 Jan 2018 20:44:48 +0000 (25 15:44 -0500)
treece447534849f8d20826c48ad6b8859c5bfbe69d9
parenta2aaf9509ba578f4e7705b506ee9a0f764d24ff2
geoip: Add a lookup function for client map entry

The upcoming DoS mitigation subsytem needs to keep information on a per-IP
basis which is also what the geoip clientmap does.

For another subsystem to access that clientmap, this commit adds a lookup
function that returns the entry. For this, the clientmap_entry_t had to be
moved to the header file.

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/geoip.c
src/or/geoip.h