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 #ifdef OS_WIN32
28 #include "win32-syscall.h"
29 #endif
30 
31 int GetIfaceMTU(const char *pcap_dev);
32 int GetIfaceMaxPacketSize(const char *pcap_dev);
33 int GetIfaceOffloading(const char *dev, int csum, int other);
34 int GetIfaceRSSQueuesNum(const char *pcap_dev);
35 #ifdef SIOCGIFFLAGS
36 int GetIfaceFlags(const char *ifname);
37 #endif
38 #ifdef SIOCSIFFLAGS
39 int SetIfaceFlags(const char *ifname, int flags);
40 #endif
41 #ifdef SIOCGIFCAP
42 int GetIfaceCaps(const char *ifname);
43 #endif
44 #ifdef SIOCSIFCAP
45 int SetIfaceCaps(const char *ifname, int caps);
46 #endif
47 int DisableIfaceOffloading(LiveDevice *dev, int csum, int other);
uint16_t flags
int GetIfaceOffloading(const char *dev, int csum, int other)
output offloading status of the link
Definition: util-ioctl.c:694
int DisableIfaceOffloading(LiveDevice *dev, int csum, int other)
Definition: util-ioctl.c:707
int GetIfaceRSSQueuesNum(const char *pcap_dev)
Definition: util-ioctl.c:737
void RestoreIfaceOffloading(LiveDevice *dev)
Definition: util-ioctl.c:724
int GetIfaceMTU(const char *pcap_dev)
output the link MTU
Definition: util-ioctl.c:91
int GetIfaceMaxPacketSize(const char *pcap_dev)
output max packet size for a link
Definition: util-ioctl.c:132