Commit f007cb76 authored by Ignacio Crespo's avatar Ignacio Crespo

Fixed tcp_flags

parent 4f2dade5
......@@ -78,11 +78,14 @@ netflow_moev['prot'] = netflow["network"]["iana_number"]
netflow_moev['tos'] = netflow["flow"]["tos"]
with open("./tcp_flags.yml") as f:
file_flags= yaml.load(f, Loader=yaml.FullLoader)
tcp_flags = file_flags[('-'.join(netflow["flow"]["tcp_flags"]))]
f.close()
if "tcp_flags" in netflow:
with open("./tcp_flags.yml") as f:
file_flags= yaml.load(f, Loader=yaml.FullLoader)
tcp_flags = file_flags[('-'.join(netflow["flow"]["tcp_flags"]))]
f.close()
else:
tcp_flags = 0
netflow_moev['tcp_flags'] = tcp_flags
netflow_moev['src_mask'] = netflow["flow"]["src_mask_len"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment