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
27int GetIfaceMTU(const char *pcap_dev);
29int GetIfaceOffloading(const char *dev, int csum, int other);
30int GetIfaceRSSQueuesNum(const char *pcap_dev);
31#ifdef SIOCGIFFLAGS
32int GetIfaceFlags(const char *ifname);
33#endif
34#ifdef SIOCSIFFLAGS
35int SetIfaceFlags(const char *ifname, int flags);
36#endif
37#ifdef SIOCGIFCAP
38int GetIfaceCaps(const char *ifname);
39#endif
40#ifdef SIOCSIFCAP
41int SetIfaceCaps(const char *ifname, int caps);
42#endif
43int DisableIfaceOffloading(LiveDevice *dev, int csum, int other);
uint8_t flags
Definition decode-gre.h:0
int GetIfaceMaxPacketSize(LiveDevice *ld)
output max packet size for a link
Definition util-ioctl.c:121
int GetIfaceOffloading(const char *dev, int csum, int other)
output offloading status of the link
Definition util-ioctl.c:670
int DisableIfaceOffloading(LiveDevice *dev, int csum, int other)
Definition util-ioctl.c:683
int GetIfaceMTU(const char *pcap_dev)
output the link MTU
Definition util-ioctl.c:82
int GetIfaceRSSQueuesNum(const char *pcap_dev)
Definition util-ioctl.c:713
void RestoreIfaceOffloading(LiveDevice *dev)
Definition util-ioctl.c:700