summaryrefslogtreecommitdiff
path: root/examples/py-flow-info
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-09-25 20:03:14 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-09-25 20:43:23 +0200
commit6c0ac8b0457dd56d99f55ccc87e3c9495ee6f412 (patch)
tree828e1d642572718b38d92083cdb82af9277556b4 /examples/py-flow-info
parent370ca7c00d23536f2d73f9a80994f24f35f7a877 (diff)
Added new flow event: FLOW_EVENT_DETECTION_UPDATE
* This event will be triggered when nDPI detection has some new information for us (hopefully). * Detection change is based on hashing with 32-bit murmur3 certain members of the ndpi flow struct. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/py-flow-info')
-rwxr-xr-xexamples/py-flow-info/flow-info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/py-flow-info/flow-info.py b/examples/py-flow-info/flow-info.py
index 27ae2e626..77eb70c15 100755
--- a/examples/py-flow-info/flow-info.py
+++ b/examples/py-flow-info/flow-info.py
@@ -22,8 +22,8 @@ def parse_json_str(json_str):
event_str = 'Idle flow'
elif event == 'detected':
event_str = 'Detected'
- elif event == 'detected-extra':
- event_str = 'Detected Extra'
+ elif event == 'detection-update':
+ event_str = 'Update'
elif event == 'guessed':
event_str = 'Guessed'
elif event == 'not-detected':