PcapPlusPlus  19.12
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 */
pcpp::LinuxNicInformationSocket::~LinuxNicInformationSocket
~LinuxNicInformationSocket()
pcpp::LinuxNicInformationSocket::LinuxSocket
int LinuxSocket
Definition: LinuxNicInformationSocket.h:32
pcpp::LinuxNicInformationSocket::makeRequest
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...
pcpp::LinuxNicInformationSocket::LinuxNicInformationSocket
LinuxNicInformationSocket()
pcpp::LinuxNicInformationSocket
Definition: LinuxNicInformationSocket.h:26
pcpp
The main namespace for the PcapPlusPlus lib.
pcpp::LinuxNicInformationSocket::IoctlType
unsigned long IoctlType
Definition: LinuxNicInformationSocket.h:36