Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Packet++/header/Packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,16 @@ namespace pcpp
/// @param[in] rawPacket A pointer to the raw packet
/// @param[in] freeRawPacket Optional parameter. A flag indicating if the destructor should also call the raw
/// packet destructor or not. Default value is false
/// @param[in] parseUntil Optional parameter. Parse the packet until you reach a certain protocol (inclusive).
/// Can be useful for cases when you need to parse only up to a certain layer and want to avoid the performance
/// impact and memory consumption of parsing the whole packet. Default value is ::UnknownProtocol which means
/// don't take this parameter into account
/// @param[in] parseUntil Optional parameter. Parse the packet until you reach a certain protocol family
/// (inclusive). Can be useful for cases when you need to parse only up to a certain layer and want to avoid the
/// performance impact and memory consumption of parsing the whole packet. Default value is ::UnknownProtocol
/// which means don't take this parameter into account
/// @param[in] parseUntilLayer Optional parameter. Parse the packet until you reach a certain layer in the OSI
/// model (inclusive). Can be useful for cases when you need to parse only up to a certain OSI layer (for
/// example transport layer) and want to avoid the performance impact and memory consumption of parsing the
/// whole packet. Default value is ::OsiModelLayerUnknown which means don't take this parameter into account
explicit Packet(RawPacket* rawPacket, bool freeRawPacket = false, ProtocolType parseUntil = UnknownProtocol,
explicit Packet(RawPacket* rawPacket, bool freeRawPacket = false,
ProtocolTypeFamily parseUntil = UnknownProtocol,
Comment thread
Dimi1010 marked this conversation as resolved.
Outdated
OsiModelLayer parseUntilLayer = OsiModelLayerUnknown);

/// A constructor for creating a packet out of already allocated RawPacket. Very useful when parsing packets
Expand Down
3 changes: 2 additions & 1 deletion Packet++/src/Packet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ namespace pcpp
}
}

Packet::Packet(RawPacket* rawPacket, bool freeRawPacket, ProtocolType parseUntil, OsiModelLayer parseUntilLayer)
Packet::Packet(RawPacket* rawPacket, bool freeRawPacket, ProtocolTypeFamily parseUntil,
OsiModelLayer parseUntilLayer)
{
m_FreeRawPacket = false;
m_RawPacket = nullptr;
Expand Down
Loading