Go to the documentation of this file.
18 #ifndef SURICATA_UTIL_DEVICE_H
19 #define SURICATA_UTIL_DEVICE_H
26 #define OFFLOAD_FLAG_SG (1<<0)
27 #define OFFLOAD_FLAG_TSO (1<<1)
28 #define OFFLOAD_FLAG_GSO (1<<2)
29 #define OFFLOAD_FLAG_GRO (1<<3)
30 #define OFFLOAD_FLAG_LRO (1<<4)
31 #define OFFLOAD_FLAG_RXCSUM (1<<5)
32 #define OFFLOAD_FLAG_TXCSUM (1<<6)
33 #define OFFLOAD_FLAG_TOE (1<<7)
68 #ifdef BUILD_UNIX_SOCKET
69 TmEcode LiveDeviceIfaceStat(json_t *cmd, json_t *server_msg,
void *data);
70 TmEcode LiveDeviceIfaceList(json_t *cmd, json_t *server_msg,
void *data);
71 TmEcode LiveDeviceGetBypassedStats(json_t *cmd, json_t *answer,
void *data);
void LiveDevAddBypassSuccess(LiveDevice *dev, uint64_t cnt, int family)
void LiveSetOffloadDisable(void)
void LiveDevicePktsAdd(LiveDevice *dev, uint64_t n)
void LiveDevSubBypassStats(LiveDevice *dev, uint64_t cnt, int family)
uint64_t LiveDeviceInvalidChecksumsGet(LiveDevice *dev)
const char * LiveGetDeviceName(int number)
Get a pointer to the device name at idx.
int LiveRegisterDevice(const char *dev)
Add a pcap device for monitoring and create structure.
int LiveRegisterDeviceName(const char *dev)
Add a device for monitoring.
void LiveDeviceFinalize(void)
void LiveDeviceDropAdd(LiveDevice *dev, uint64_t n)
void LiveDevAddBypassFail(LiveDevice *dev, uint64_t cnt, int family)
void LiveDevAddBypassStats(LiveDevice *dev, uint64_t cnt, int family)
int LiveBuildDeviceList(const char *base)
void LiveDevicePktsIncr(LiveDevice *dev)
LiveDevice * LiveDeviceForEach(LiveDevice **ldev, LiveDevice **ndev)
int LiveDeviceListClean(void)
int LiveGetDeviceCount(void)
Get the number of registered devices.
void LiveDevRegisterExtension(void)
int LiveBuildDeviceListCustom(const char *base, const char *itemname)
void LiveDeviceHasNoStats(void)
const char * LiveGetShortName(const char *dev)
uint64_t LiveDevicePktsGet(LiveDevice *dev)
LiveDevice * LiveGetDevice(const char *dev)
Get a pointer to the device at idx.
void LiveSetOffloadWarn(void)
void LiveDeviceBypassedAdd(LiveDevice *dev, uint64_t n)
int LiveDevUseBypass(LiveDevice *dev)