mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Added get_current_packet_header bif.
This commit is contained in:
parent
2fc8ef232a
commit
c0bf1b3c67
6 changed files with 92 additions and 74 deletions
|
@ -428,15 +428,6 @@ void Packet::ProcessLayer2()
|
|||
|
||||
RecordVal* Packet::BuildPktHdrVal() const
|
||||
{
|
||||
static RecordType* l2_hdr_type = 0;
|
||||
static RecordType* raw_pkt_hdr_type = 0;
|
||||
|
||||
if ( ! raw_pkt_hdr_type )
|
||||
{
|
||||
raw_pkt_hdr_type = internal_type("raw_pkt_hdr")->AsRecordType();
|
||||
l2_hdr_type = internal_type("l2_hdr")->AsRecordType();
|
||||
}
|
||||
|
||||
RecordVal* pkt_hdr = new RecordVal(raw_pkt_hdr_type);
|
||||
RecordVal* l2_hdr = new RecordVal(l2_hdr_type);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue