flow: inline commonly used getters

pull/8421/head
Victor Julien 3 years ago
parent 76a256a8b1
commit b62a513c47

@ -1143,16 +1143,6 @@ int FlowSetProtoFreeFunc (uint8_t proto, void (*Free)(void *))
return 1;
}
AppProto FlowGetAppProtocol(const Flow *f)
{
return f->alproto;
}
void *FlowGetAppState(const Flow *f)
{
return f->alstate;
}
/**
* \brief get 'disruption' flags: GAP/DEPTH/PASS
* \param f locked flow

@ -605,6 +605,16 @@ uint16_t FlowGetDestinationPort(Flow *flow);
/** ----- Inline functions ----- */
static inline AppProto FlowGetAppProtocol(const Flow *f)
{
return f->alproto;
}
static inline void *FlowGetAppState(const Flow *f)
{
return f->alstate;
}
/** \brief Set the No Packet Inspection Flag without locking the flow.
*
* \param f Flow to set the flag in

Loading…
Cancel
Save