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:
Jon Siwek 2012-03-21 10:32:39 -05:00
parent 1c1d657039
commit c765f43fe3
7 changed files with 185 additions and 208 deletions

View file

@ -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