Exemple #1
0
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);
}
Exemple #2
0
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
}
Exemple #3
0
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
}
Exemple #4
0
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
}
Exemple #5
0
int DAQ_ModifyFlow(const DAQ_PktHdr_t *hdr, const DAQ_ModFlow_t* mod)
{
    return daq_modify_flow(daq_mod, daq_hand, hdr, mod);
}