int DAQ_ModifyFlowOpaque(const DAQ_PktHdr_t *hdr, uint32_t opaque) { DAQ_ModFlow_t mod; mod.type = DAQ_MODFLOW_TYPE_OPAQUE; mod.length = sizeof(opaque); mod.value = &opaque; return daq_modify_flow(daq_mod, daq_hand, hdr, &mod); }
int DAQ_ModifyFlowOpaque(const DAQ_PktHdr_t *hdr, uint32_t opaque) { #ifdef HAVE_DAQ_ACQUIRE_WITH_META DAQ_ModFlow_t mod; mod.opaque = opaque; return daq_modify_flow(daq_mod, daq_hand, hdr, &mod); #else return DAQ_ERROR_NOTSUP; #endif }
int DAQ_ModifyFlow(const void* h, uint32_t id) { #ifdef HAVE_DAQ_ACQUIRE_WITH_META const DAQ_PktHdr_t *hdr = (DAQ_PktHdr_t*) h; DAQ_ModFlow_t mod; mod.opaque = id; return daq_modify_flow(daq_mod, daq_hand, hdr, &mod); #else return -1; #endif }
int DAQ_ModifyFlowHAState(const DAQ_PktHdr_t *hdr, const void *data, uint32_t length) { DAQ_ModFlow_t mod; mod.type = DAQ_MODFLOW_TYPE_HA_STATE; mod.length = length; mod.value = data; #ifdef REG_TEST return 0; #else return daq_modify_flow(daq_mod, daq_hand, hdr, &mod); #endif }
int DAQ_ModifyFlow(const DAQ_PktHdr_t *hdr, const DAQ_ModFlow_t* mod) { return daq_modify_flow(daq_mod, daq_hand, hdr, mod); }