Skip to content

Commit

Permalink
manually fix Layer
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercosmos committed Jul 26, 2024
1 parent 1dacb83 commit 3a915c4
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Packet++/header/Layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,14 @@ namespace pcpp
inherits Layer.
* The protocol layer class expose all properties and methods relevant for viewing and editing protocol fields.
* For example: a pointer to a structured header (e.g tcphdr, iphdr, etc.), protocol header size, payload size,
compute
* fields that can be automatically computed, print protocol data to string, etc.
compute fields that can be automatically computed, print protocol data to string, etc.
* Each protocol instance is obviously part of a protocol stack (which construct a packet). This protocol stack is
represented
* in PcapPlusPlus in a linked list, and each layer is an element in this list. That's why each layer has properties
to the next and previous
* layer in the protocol stack
represented in PcapPlusPlus in a linked list, and each layer is an element in this list. That's why each layer has
properties to the next and previous layer in the protocol stack.
* The Layer class, as a base class, is abstract and the user can't create an instance of it (it has a private
constructor)
constructor).
* Each layer holds a pointer to the relevant place in the packet. The layer sees all the data from this pointer
forward until the
* end of the packet. Here is an example packet showing this concept:
forward until the end of the packet. Here is an example packet showing this concept:
*
@verbatim
====================================================
Expand Down

0 comments on commit 3a915c4

Please sign in to comment.