SCFree(p);
}
+void UTHAssignFlow(Packet *p, Flow *f)
+{
+ if (p && f) {
+ p->flow = f;
+ p->flags |= PKT_HAS_FLOW;
+ }
+}
+
Flow *UTHBuildFlow(int family, const char *src, const char *dst, Port sp, Port dp)
{
struct in_addr in;
void UTHFreePacket(Packet *);
void UTHFreePackets(Packet **, int);
+void UTHAssignFlow(Packet *p, Flow *f);
Flow *UTHBuildFlow(int family, const char *src, const char *dst, Port sp, Port dp);
void UTHFreeFlow(Flow *flow);
int UTHAddStreamToFlow(Flow *f, int direction, uint8_t *data, uint32_t data_len);