PcapPlusPlus  Next
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() = default;
25 
26  public:
31  virtual IPAddress getSrcIPAddress() const = 0;
32 
37  virtual IPAddress getDstIPAddress() const = 0;
38 
42  virtual ~IPLayer() = default;
43  };
44 } // namespace pcpp
Definition: IpAddress.h:358
Definition: IPLayer.h:22
virtual ~IPLayer()=default
virtual IPAddress getDstIPAddress() const =0
virtual IPAddress getSrcIPAddress() const =0
The main namespace for the PcapPlusPlus lib.