PcapPlusPlus  23.09
IPLayer.h
Go to the documentation of this file.
1 #ifndef PACKETPP_IP_LAYER
2 #define PACKETPP_IP_LAYER
3 
4 #include "IpAddress.h"
5 #include "Layer.h"
6 
8 
13 namespace pcpp
14 {
22  class IPLayer
23  {
24  protected:
25  IPLayer() {}
26  public:
31  virtual IPAddress getSrcIPAddress() const = 0;
32 
37  virtual IPAddress getDstIPAddress() const = 0;
38 
42  virtual ~IPLayer() {}
43  };
44 }
45 
46 #endif // PACKETPP_IP_LAYER
The main namespace for the PcapPlusPlus lib.
virtual IPAddress getDstIPAddress() const =0
virtual IPAddress getSrcIPAddress() const =0
Definition: IPLayer.h:22
virtual ~IPLayer()
Definition: IPLayer.h:42
Definition: IpAddress.h:321