PcapPlusPlus
Next
LinuxNicInformationSocket.h
1
#pragma once
2
3
struct
ifreq;
4
7
namespace
pcpp
8
{
21
class
LinuxNicInformationSocket
22
{
23
public
:
25
typedef
int
LinuxSocket
;
27
typedef
unsigned
long
IoctlType
;
28
31
LinuxNicInformationSocket
();
34
~LinuxNicInformationSocket
();
35
50
bool
makeRequest
(
const
char
* nicName,
const
IoctlType
ioctlType, ifreq* request);
51
52
private
:
54
LinuxNicInformationSocket
(
const
LinuxNicInformationSocket
&);
56
LinuxNicInformationSocket
operator=(
const
LinuxNicInformationSocket
&);
57
LinuxSocket
m_Socket;
58
};
59
}
// namespace pcpp
pcpp::LinuxNicInformationSocket
Definition:
LinuxNicInformationSocket.h:22
pcpp::LinuxNicInformationSocket::LinuxSocket
int LinuxSocket
Simple type rename for convenience.
Definition:
LinuxNicInformationSocket.h:25
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
Simple type rename for convenience.
Definition:
LinuxNicInformationSocket.h:27
pcpp::LinuxNicInformationSocket::LinuxNicInformationSocket
LinuxNicInformationSocket()
pcpp
The main namespace for the PcapPlusPlus lib.
Pcap++
header
LinuxNicInformationSocket.h
Generated on Sun Jan 12 2025 07:23:55 for PcapPlusPlus by
1.9.1