PcapPlusPlus
21.11
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
{
26
class
LinuxNicInformationSocket
27
{
28
public
:
32
typedef
int
LinuxSocket
;
36
typedef
unsigned
long
IoctlType
;
37
42
LinuxNicInformationSocket
();
47
~LinuxNicInformationSocket
();
48
65
bool
makeRequest
(
const
char
* nicName,
const
IoctlType ioctlType, ifreq* request);
66
private
:
67
/* Hidden copy constructor. This structure is not copyable */
68
LinuxNicInformationSocket
(
const
LinuxNicInformationSocket
&);
69
/* Hidden copy assignment operator. This structure is not copyable */
70
LinuxNicInformationSocket
operator=(
const
LinuxNicInformationSocket
&);
71
LinuxSocket m_Socket;
72
};
73
}
// namespace pcpp
74
#endif
/* PCAPPP_LINUX_NIC_INFORMATION_SOCKET */
pcpp
The main namespace for the PcapPlusPlus lib.
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
Definition:
LinuxNicInformationSocket.h:26
pcpp::LinuxNicInformationSocket::LinuxNicInformationSocket
LinuxNicInformationSocket()
pcpp::LinuxNicInformationSocket::~LinuxNicInformationSocket
~LinuxNicInformationSocket()
pcpp::LinuxNicInformationSocket::IoctlType
unsigned long IoctlType
Definition:
LinuxNicInformationSocket.h:36
PcapPlusPlus
Dist
header
LinuxNicInformationSocket.h
Generated on Tue Nov 9 2021 08:33:44 for PcapPlusPlus by
1.8.13