PcapPlusPlus  Next
LinuxNicInformationSocket.h
1 #pragma once
2 
3 struct ifreq;
4 
9 namespace pcpp
10 {
26  {
27  public:
31  typedef int LinuxSocket;
35  typedef unsigned long IoctlType;
36 
47 
64  bool makeRequest(const char* nicName, const IoctlType ioctlType, ifreq* request);
65 
66  private:
67  /* Hidden copy constructor. This structure is not copyable */
69  /* Hidden copy assignment operator. This structure is not copyable */
71  LinuxSocket m_Socket;
72  };
73 } // namespace pcpp
Definition: LinuxNicInformationSocket.h:26
int LinuxSocket
Definition: LinuxNicInformationSocket.h:31
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
Definition: LinuxNicInformationSocket.h:35
The main namespace for the PcapPlusPlus lib.