mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
543 B
C
21 lines
543 B
C
/* Copyright (c) 2008 Victor Julien <victor@inliniac.net> */
|
|
|
|
#ifndef __FLOW_HASH_H__
|
|
#define __FLOW_HASH_H__
|
|
|
|
/* flow hash bucket -- the hash is basically an array of these buckets.
|
|
* Each bucket contains a flow or list of flows. All these flows have
|
|
* the same hashkey (the hash is a chained hash). When doing modifications
|
|
* to the list, the entire bucket is locked. */
|
|
typedef struct FlowBucket_ {
|
|
Flow *f;
|
|
pthread_mutex_t m;
|
|
} FlowBucket;
|
|
|
|
/* prototypes */
|
|
|
|
Flow *FlowGetFlowFromHash(Packet *);
|
|
|
|
#endif /* __FLOW_HASH_H__ */
|
|
|