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)
69#ifdef BUILD_UNIX_SOCKET
70TmEcode LiveDeviceIfaceStat(json_t *cmd, json_t *server_msg,
void *data);
71TmEcode LiveDeviceIfaceList(json_t *cmd, json_t *server_msg,
void *data);
72TmEcode LiveDeviceGetBypassedStats(json_t *cmd, json_t *answer,
void *data);
void LiveDeviceHasNoStats(void)
void LiveDevSubBypassStats(LiveDevice *dev, uint64_t cnt, int family)
void LiveDeviceFinalize(void)
uint64_t LiveDevicePktsGet(LiveDevice *dev)
uint64_t LiveDeviceInvalidChecksumsGet(LiveDevice *dev)
void LiveDevicePktsAdd(LiveDevice *dev, uint64_t n)
const char * LiveGetShortName(const char *dev)
LiveDevice * LiveDeviceForEach(LiveDevice **ldev, LiveDevice **ndev)
void LiveDevAddBypassStats(LiveDevice *dev, uint64_t cnt, int family)
int LiveGetDeviceCount(void)
Get the number of registered devices.
LiveDevice * LiveGetDevice(const char *dev)
Get a pointer to the device at idx.
int LiveDevUseBypass(LiveDevice *dev)
int LiveRegisterDevice(const char *dev)
Add a pcap device for monitoring and create structure.
int LiveGetDeviceCountWithoutAssignedThreading(void)
void LiveDeviceBypassedAdd(LiveDevice *dev, uint64_t n)
void LiveSetOffloadDisable(void)
int LiveBuildDeviceListCustom(const char *base, const char *itemname)
void LiveDevRegisterExtension(void)
void LiveSetOffloadWarn(void)
int LiveRegisterDeviceName(const char *dev)
Add a device for monitoring.
void LiveDevAddBypassSuccess(LiveDevice *dev, uint64_t cnt, int family)
void LiveDevAddBypassFail(LiveDevice *dev, uint64_t cnt, int family)
void LiveDevicePktsIncr(LiveDevice *dev)
int LiveDeviceListClean(void)
const char * LiveGetDeviceName(int number)
Get a pointer to the device name at idx.
int LiveBuildDeviceList(const char *base)
void LiveDeviceDropAdd(LiveDevice *dev, uint64_t n)