Victor Julien
4816dcc3d3
flow json log: add 'shutdown' as flow end reason
...
When engine shuts down all flows in the hash are logged out. They
may not have timed out yet. So they are forced. Log the reason to
be 'shutdown'.
11 years ago
Ken Steele
8f1d75039a
Enforce function coding standard
...
Functions should be defined as:
int foo(void)
{
}
Rather than:
int food(void) {
}
All functions where changed by a script to match this standard.
11 years ago
Victor Julien
f1185d051c
flow id: quick and dirty first stab at a flow id
...
Add a 'flow_id' that is the same for all records produced for packets
belonging to the same flow.
This patch simply takes the flow's memory address.
11 years ago
Victor Julien
9f55ca0057
flow: add flow_end_flags field, add logging
...
The flow end flags field is filled by the flow manager or the flow
hash (in case of forced timeout of a flow) to record the timeout
conditions in the flow:
- emergency mode
- state
- reason (timed out or forced)
Add logging to the flow logger.
11 years ago
Victor Julien
e6ed6731b1
flow log: log TCP state
...
Log the TCP state at timeout.
11 years ago
Victor Julien
6f9a2fcd58
flow: log individual tcp flags
...
Log the tcp flags.
11 years ago
Victor Julien
07b7f66f3c
flow-log: log TCP flags per direction
...
In addition to flags for the entire session, also log out TCP flags
for both directions separately.
11 years ago
Victor Julien
bd490736c2
flow: take flow pkt & byte count out of debug
...
Until now the flow packet and byte counters were only available in
DEBUG mode. For logging purposes they are now available always.
11 years ago
Victor Julien
7acea2c66d
flow: track lastts in struct timeval
...
Track full timestamp for lastts in flows to be able to log it.
11 years ago
Victor Julien
c66a29b67d
flow: track bytes per direction
...
Track bytes in both flow directions for logging purposes.
11 years ago
Victor Julien
f828793f8f
flow log: log start/end times
...
Log time of first packet (flow creation) and of the last packet.
11 years ago
Victor Julien
672f6523a7
flow-log: log TCP flags seen
...
Log TCP flags seen during the life time of a flow/session.
11 years ago
Victor Julien
ec7d446f16
flow-log: log pkts, bytes
...
Only in DEBUG currently.
11 years ago
Victor Julien
3c7af02067
flow-json-log: stub
...
Stub for JSON flow logger.
11 years ago