Bif for a new function to calculates haversine distance between two geoip locations

Description

Merge request for:

topic/aashish/haversine

  1.  

    1. ## Calculates haversine distance between two geoip locations
      ##
      ##

    2. lat1, long1, lat2, long2
      ##

    3. Returns: distance in miles

    4. function haversine_distance%(lat1:double, long1:double, lat2:double, long2:double %): double

accompanying bro policy in base/utils/haversine_distance_ip.bro

module GLOBAL;

  1.  

    1. Returns the haversine distance between two IP addresses based on GeoIP

    2. database locations
      ##
      ##

    3. orig: the address of orig connection

    4. resp: the address of resp server

    5. Returns: the GeoIP distance between orig and resp in miles
      function haversine_distance_ip(orig: addr, resp: addr): double

Environment

None

Activity

Show:

Assignee

Robin Sommer

Reporter

Aashish Sharma

Labels

External issue ID

None

Components

Fix versions

Affects versions

Priority

Low
Configure