From 3a915c424ee40b2dd6039ed355c08ce5408ff12e Mon Sep 17 00:00:00 2001 From: "anchi.liu" Date: Fri, 26 Jul 2024 15:28:30 +0900 Subject: [PATCH] manually fix Layer --- Packet++/header/Layer.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Packet++/header/Layer.h b/Packet++/header/Layer.h index 56884d6c11..e649a2403e 100644 --- a/Packet++/header/Layer.h +++ b/Packet++/header/Layer.h @@ -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 ====================================================