mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Change IP_Hdr copy ctor/assign to explicit method
Addresses BIT-1298
This commit is contained in:
parent
c211a2c91a
commit
d31b556b85
3 changed files with 14 additions and 46 deletions
17
src/IP.h
17
src/IP.h
|
@ -368,18 +368,11 @@ public:
|
|||
}
|
||||
|
||||
/**
|
||||
* Copy constructor. The internal buffer of \a other which contains
|
||||
* the header data must not be truncated. Also not that if that buffer
|
||||
* points to a full packet payload, only the IP header portion is copied.
|
||||
* Copy a header. The internal buffer which contains the header data
|
||||
* must not be truncated. Also note that if that buffer points to a full
|
||||
* packet payload, only the IP header portion is copied.
|
||||
*/
|
||||
IP_Hdr(const IP_Hdr& other);
|
||||
|
||||
/**
|
||||
* Copy assignment. The internal buffer of \a other which contains
|
||||
* the header data must not be truncated. Also not that if that buffer
|
||||
* points to a full packet payload, only the IP header portion is copied.
|
||||
*/
|
||||
IP_Hdr& operator=(IP_Hdr other);
|
||||
IP_Hdr* Copy() const;
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
|
@ -581,8 +574,6 @@ public:
|
|||
*/
|
||||
RecordVal* BuildPktHdrVal() const;
|
||||
|
||||
friend void swap(IP_Hdr& a, IP_Hdr& b);
|
||||
|
||||
private:
|
||||
|
||||
const struct ip* ip4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue