mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
20 lines
454 B
Text
20 lines
454 B
Text
# $Id: http-entity.bro 6 2004-04-30 00:31:26Z jason $
|
|
|
|
# Counts entity_level.
|
|
|
|
module HTTP;
|
|
|
|
event http_begin_entity(c: connection, is_orig: bool)
|
|
{
|
|
local s = lookup_http_request_stream(c);
|
|
local msg = get_http_message(s, is_orig);
|
|
++msg$entity_level;
|
|
}
|
|
|
|
event http_end_entity(c: connection, is_orig: bool)
|
|
{
|
|
local s = lookup_http_request_stream(c);
|
|
local msg = get_http_message(s, is_orig);
|
|
if ( msg$entity_level > 0 )
|
|
--msg$entity_level;
|
|
}
|