Skip to content

Commit

Permalink
simplify the code
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercosmos committed Sep 25, 2024
1 parent 70ea57f commit 1c45bc6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Packet++/src/GvcpLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ namespace pcpp
/*---------------------- Class GvcpLayer ----------------------------*/

GvcpLayer::GvcpLayer(uint8_t* data, size_t dataSize, Layer* prevLayer, Packet* packet)
: Layer(data, dataSize, prevLayer, packet)
{
m_Protocol = Gvcp;
}
: Layer(data, dataSize, prevLayer, packet, Gvcp)
{}

GvcpLayer* GvcpLayer::parseGvcpLayer(uint8_t* data, size_t dataLen, Layer* prevLayer, Packet* packet)
{
Expand Down

0 comments on commit 1c45bc6

Please sign in to comment.