mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Refactor script-layer IPv6 ext. header chain (addresses #795)
This replaces the "ip6_hdr_chain" in the "ip6_hdr" record with a vector of "ip6_ext_hdr" to make it easier to traverse the chain.
This commit is contained in:
parent
1c1d657039
commit
c765f43fe3
7 changed files with 185 additions and 208 deletions
6
src/IP.h
6
src/IP.h
|
@ -121,7 +121,7 @@ public:
|
|||
/**
|
||||
* Returns the script-layer record representation of the header.
|
||||
*/
|
||||
RecordVal* BuildRecordVal() const;
|
||||
RecordVal* BuildRecordVal(VectorVal* chain = 0) const;
|
||||
|
||||
protected:
|
||||
uint8 type;
|
||||
|
@ -188,10 +188,10 @@ public:
|
|||
(ntohs(GetFragHdr()->ip6f_offlg) & 0x0001) != 0 : 0; }
|
||||
|
||||
/**
|
||||
* Returns an ip6_hdr_chain RecordVal that includes script-layer
|
||||
* Returns a vector of ip6_ext_hdr RecordVals that includes script-layer
|
||||
* representation of all extension headers in the chain.
|
||||
*/
|
||||
RecordVal* BuildRecordVal() const;
|
||||
VectorVal* BuildVal() const;
|
||||
|
||||
protected:
|
||||
// for access to protected ctor that changes next header values that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue