suricata
|
Go to the source code of this file.
Functions | |
int | GetIfaceMTU (const char *pcap_dev) |
output the link MTU More... | |
int | GetIfaceMaxPacketSize (LiveDevice *ld) |
output max packet size for a link More... | |
int | GetIfaceOffloading (const char *dev, int csum, int other) |
output offloading status of the link More... | |
int | GetIfaceRSSQueuesNum (const char *pcap_dev) |
int | DisableIfaceOffloading (LiveDevice *dev, int csum, int other) |
void | RestoreIfaceOffloading (LiveDevice *dev) |
Definition in file util-ioctl.h.
int DisableIfaceOffloading | ( | LiveDevice * | dev, |
int | csum, | ||
int | other | ||
) |
Definition at line 679 of file util-ioctl.c.
References LiveDevice_::offload_orig.
int GetIfaceMaxPacketSize | ( | LiveDevice * | ld | ) |
output max packet size for a link
This does a best effort to find the maximum packet size for the link. In case of uncertainty, it will output a majorant to be sure avoid the cost of dynamic allocation.
LiveDevice | object |
0 | in case of error |
Definition at line 120 of file util-ioctl.c.
References LiveDevice_::dev, GetIfaceMTU(), and LiveDevice_::mtu.
int GetIfaceMTU | ( | const char * | dev | ) |
output the link MTU
Name | of link |
-1 | in case of error, 0 if MTU can not be found |
Definition at line 81 of file util-ioctl.c.
References SCLogInfo, SCLogWarning, and strlcpy().
Referenced by GetIfaceMaxPacketSize().
int GetIfaceOffloading | ( | const char * | dev, |
int | csum, | ||
int | other | ||
) |
output offloading status of the link
Test interface for offloading features. If one of them is activated then suricata mays received packets merge at reception. The result is oversized packets and this may cause some serious problem in some capture mode where the size of the packet is limited (AF_PACKET in V2 more for example).
Name | of link |
csum | check if checksums are offloaded |
other | check if other things are offloaded: TSO, GRO, etc. |
-1 | in case of error, 0 if none, 1 if some |
Definition at line 666 of file util-ioctl.c.
int GetIfaceRSSQueuesNum | ( | const char * | pcap_dev | ) |
Definition at line 709 of file util-ioctl.c.
References SCLogInfo, SCLogWarning, and strlcpy().
void RestoreIfaceOffloading | ( | LiveDevice * | dev | ) |
Definition at line 696 of file util-ioctl.c.
References LiveDevice_::offload_orig.