PcapPlusPlus  Next
LinuxNicInformationSocket.h
1 #pragma once
2 
3 struct ifreq;
4 
7 namespace pcpp
8 {
22  {
23  public:
25  typedef int LinuxSocket;
27  typedef unsigned long IoctlType;
28 
35 
50  bool makeRequest(const char* nicName, const IoctlType ioctlType, ifreq* request);
51 
52  private:
57  LinuxSocket m_Socket;
58  };
59 } // namespace pcpp
Definition: LinuxNicInformationSocket.h:22
int LinuxSocket
Simple type rename for convenience.
Definition: LinuxNicInformationSocket.h:25
bool makeRequest(const char *nicName, const IoctlType ioctlType, ifreq *request)
Makes request to socket. Firstly tries to open socket if it is not opened. Then makes an ioctl(2) req...
unsigned long IoctlType
Simple type rename for convenience.
Definition: LinuxNicInformationSocket.h:27
The main namespace for the PcapPlusPlus lib.