PcapPlusPlus
21.05
|
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) |
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.
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
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