base/utils/geoip-distance.bro

Functions to calculate distance between two locations, based on GeoIP data.

Source File:/scripts/base/utils/geoip-distance.bro

Summary

Functions

haversine_distance_ip: function Returns the distance between two IP addresses using the haversine formula, based on GeoIP database locations.

Detailed Interface

Functions

haversine_distance_ip
Type:function (a1: addr, a2: addr) : double

Returns the distance between two IP addresses using the haversine formula, based on GeoIP database locations. Requires Bro to be built with GeoIP.

A1:First IP address.
A2:Second IP address.
Returns:The distance between a1 and a2 in miles, or -1.0 if GeoIP data is not available for either of the IP addresses.

See also: haversine_distance, lookup_location


Previous Page

base/utils/files.bro

Copyright 2016, The Bro Project. Last updated on December 19, 2018. Created using Sphinx 1.8.2.