suricata
util-ioctl.h
Go to the documentation of this file.
1
/* Copyright (C) 2010 Open Information Security Foundation
2
*
3
* You can copy, redistribute or modify this Program under the terms of
4
* the GNU General Public License version 2 as published by the Free
5
* Software Foundation.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* version 2 along with this program; if not, write to the Free Software
14
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15
* 02110-1301, USA.
16
*/
17
18
/**
19
* \file
20
*
21
* \author Eric Leblond <eleblond@edenwall.com>
22
*/
23
24
#include "
suricata-common.h
"
25
#include "
util-device.h
"
26
27
int
GetIfaceMTU
(
const
char
*pcap_dev);
28
int
GetIfaceMaxPacketSize
(
LiveDevice
*ld);
29
int
GetIfaceOffloading
(
const
char
*dev,
int
csum,
int
other);
30
int
GetIfaceRSSQueuesNum
(
const
char
*pcap_dev);
31
#ifdef SIOCGIFFLAGS
32
int
GetIfaceFlags(
const
char
*ifname);
33
#endif
34
#ifdef SIOCSIFFLAGS
35
int
SetIfaceFlags(
const
char
*ifname,
int
flags
);
36
#endif
37
#ifdef SIOCGIFCAP
38
int
GetIfaceCaps(
const
char
*ifname);
39
#endif
40
#ifdef SIOCSIFCAP
41
int
SetIfaceCaps(
const
char
*ifname,
int
caps);
42
#endif
43
int
DisableIfaceOffloading
(
LiveDevice
*dev,
int
csum,
int
other);
44
void
RestoreIfaceOffloading
(
LiveDevice
*dev);
LiveDevice_
Definition:
util-device.h:50
DisableIfaceOffloading
int DisableIfaceOffloading(LiveDevice *dev, int csum, int other)
Definition:
util-ioctl.c:679
util-device.h
GetIfaceMTU
int GetIfaceMTU(const char *pcap_dev)
output the link MTU
Definition:
util-ioctl.c:81
RestoreIfaceOffloading
void RestoreIfaceOffloading(LiveDevice *dev)
Definition:
util-ioctl.c:696
GetIfaceMaxPacketSize
int GetIfaceMaxPacketSize(LiveDevice *ld)
output max packet size for a link
Definition:
util-ioctl.c:120
GetIfaceOffloading
int GetIfaceOffloading(const char *dev, int csum, int other)
output offloading status of the link
Definition:
util-ioctl.c:666
flags
uint8_t flags
Definition:
decode-gre.h:0
suricata-common.h
GetIfaceRSSQueuesNum
int GetIfaceRSSQueuesNum(const char *pcap_dev)
Definition:
util-ioctl.c:709
src
util-ioctl.h
Generated on Wed Nov 20 2024 23:30:38 for suricata by
1.8.18