PcapPlusPlus  21.05
pcpp::KniDevice::KniOldIoctlCallbacks Struct Reference

Old callbacks for KNI device events. This structure MUST be used ONLY when KniDeviceList::callbackVersion returns KniDeviceList::KniCallbackVersion::CALLBACKS_OLD. Or if You are sure that DPDK version used is lower than 17.11. If some callback is not provided (NULL) the request will always succeeds. More...

#include <KniDevice.h>

Public Attributes

int(* change_mtu )(uint8_t port_id, unsigned int new_mtu)
 
int(* config_network_if )(uint8_t port_id, uint8_t if_up)
 

Detailed Description

Old callbacks for KNI device events. This structure MUST be used ONLY when KniDeviceList::callbackVersion returns KniDeviceList::KniCallbackVersion::CALLBACKS_OLD. Or if You are sure that DPDK version used is lower than 17.11. If some callback is not provided (NULL) the request will always succeeds.

Member Data Documentation

◆ change_mtu

int(* pcpp::KniDevice::KniOldIoctlCallbacks::change_mtu) (uint8_t port_id, unsigned int new_mtu)

Pointer to function of changing MTU. Must return 0 in case of success or negative error code

◆ config_network_if

int(* pcpp::KniDevice::KniOldIoctlCallbacks::config_network_if) (uint8_t port_id, uint8_t if_up)

Pointer to function of configuring network interface. Must return 0 in case of success or negative error code