Refactor IP_Hdr class ctors (addresses #532).

They now take an explicit flag argument toggling whether the other
pointer argument needs to be released on destruction.
This commit is contained in:
Jon Siwek 2012-02-27 12:25:41 -06:00
parent ada5f38d04
commit dfad686d7c
7 changed files with 16 additions and 26 deletions

View file

@ -415,7 +415,7 @@ public:
}
const IP_Hdr IP() const
{ return IP_Hdr((struct ip *) (pkt + hdr_size)); }
{ return IP_Hdr((struct ip *) (pkt + hdr_size), true); }
void Describe(ODesc* d) const;