PcapPlusPlus
Next
LinuxNicInformationSocket.h
1
#pragma once
2
3
struct
ifreq;
4
9
namespace
pcpp
10
{
25
class
LinuxNicInformationSocket
26
{
27
public
:
31
typedef
int
LinuxSocket
;
35
typedef
unsigned
long
IoctlType
;
36
41
LinuxNicInformationSocket
();
46
~LinuxNicInformationSocket
();
47
64
bool
makeRequest
(
const
char
* nicName,
const
IoctlType
ioctlType, ifreq* request);
65
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
pcpp::LinuxNicInformationSocket
Definition:
LinuxNicInformationSocket.h:26
pcpp::LinuxNicInformationSocket::LinuxSocket
int LinuxSocket
Definition:
LinuxNicInformationSocket.h:31
pcpp::LinuxNicInformationSocket::~LinuxNicInformationSocket
~LinuxNicInformationSocket()
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::IoctlType
unsigned long IoctlType
Definition:
LinuxNicInformationSocket.h:35
pcpp::LinuxNicInformationSocket::LinuxNicInformationSocket
LinuxNicInformationSocket()
pcpp
The main namespace for the PcapPlusPlus lib.
Pcap++
header
LinuxNicInformationSocket.h
Generated on Wed Nov 13 2024 01:52:36 for PcapPlusPlus by
1.9.1