Imports: | base/utils/site.bro |
---|---|
Source File: | /scripts/base/utils/directions-and-hosts.bro |
addr_matches_host : function |
Checks whether a given host (IP address) matches a given host type. |
id_matches_direction : function |
Checks whether a given connection is of a given direction with respect to the locally-monitored network. |
Direction
Type: |
|
---|
Host
Type: |
|
---|
addr_matches_host
Type: | function (ip: addr , h: Host ) : bool |
---|
Checks whether a given host (IP address) matches a given host type.
Ip: | address of a host. |
---|---|
H: | a host type. |
Returns: | T if the given host matches the given type, else F. |
id_matches_direction
Type: | function (id: conn_id , d: Direction ) : bool |
---|
Checks whether a given connection is of a given direction with respect to the locally-monitored network.
Id: | a connection record containing the originator/responder hosts. |
---|---|
D: | a direction with respect to the locally-monitored network. |
Returns: | T if the two connection endpoints match the given direction, else F. |