PcapPlusPlus  21.05
LinuxNicInformationSocket.h
1 #ifndef PCAPPP_LINUX_NIC_INFORMATION_SOCKET
2 #define PCAPPP_LINUX_NIC_INFORMATION_SOCKET
3 
4 struct ifreq;
5 
10 namespace pcpp
11 {
27  {
28  public:
32  typedef int LinuxSocket;
36  typedef unsigned long IoctlType;
37 
48 
65  bool makeRequest(const char* nicName, const IoctlType ioctlType, ifreq* request);
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
74 #endif /* PCAPPP_LINUX_NIC_INFORMATION_SOCKET */
The main namespace for the PcapPlusPlus lib.
int LinuxSocket
Definition: LinuxNicInformationSocket.h:32
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...
Definition: LinuxNicInformationSocket.h:26
unsigned long IoctlType
Definition: LinuxNicInformationSocket.h:36