Deprecate various IP/packet header Val-building methods

And supply new alternatives that use IntrusivePtr
This commit is contained in:
Jon Siwek 2020-05-04 23:16:24 -07:00
parent 457454bb80
commit 61649d5da7
11 changed files with 107 additions and 55 deletions

View file

@ -16,6 +16,7 @@ class Val;
class ODesc;
class IP_Hdr;
class RecordVal;
template <class T> class IntrusivePtr;
/**
* The Layer 3 type of a packet, as determined by the parsing code in Packet.
@ -127,6 +128,9 @@ public:
* Returns a \c raw_pkt_hdr RecordVal, which includes layer 2 and
* also everything in IP_Hdr (i.e., IP4/6 + TCP/UDP/ICMP).
*/
IntrusivePtr<RecordVal> ToRawPktHdrVal() const;
[[deprecated("Remove in v4.1. Use ToRawPktHdrval() instead.")]]
RecordVal* BuildPktHdrVal() const;
/**