PcapPlusPlus  24.09
IPLayer.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "IpAddress.h"
4 #include "Layer.h"
5 
7 
12 namespace pcpp
13 {
21  class IPLayer
22  {
23  protected:
24  IPLayer()
25  {}
26 
27  public:
32  virtual IPAddress getSrcIPAddress() const = 0;
33 
38  virtual IPAddress getDstIPAddress() const = 0;
39 
43  virtual ~IPLayer()
44  {}
45  };
46 } // namespace pcpp
Definition: IpAddress.h:358
Definition: IPLayer.h:22
virtual ~IPLayer()
Definition: IPLayer.h:43
virtual IPAddress getDstIPAddress() const =0
virtual IPAddress getSrcIPAddress() const =0
The main namespace for the PcapPlusPlus lib.