diff options
author | Luca Deri <deri@ntop.org> | 2024-08-24 17:18:33 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2024-08-24 17:18:33 +0200 |
commit | b627ec91d10e9a811a1b402dec32a6ce5963e4d2 (patch) | |
tree | e895988bbb9aa647b2448165c20ea28e44dc1d7f /python | |
parent | 2315f44efaf85bf675f9d64c2e288f1f083f38a8 (diff) |
Compilation fixes
Diffstat (limited to 'python')
-rw-r--r-- | python/ndpi/ndpi.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/python/ndpi/ndpi.py b/python/ndpi/ndpi.py index 22289ed83..6d074d382 100644 --- a/python/ndpi/ndpi.py +++ b/python/ndpi/ndpi.py @@ -1,7 +1,7 @@ """ ------------------------------------------------------------------------------------------------------------------------ ndpi.py -Copyright (C) 2011-22 - ntop.org +Copyright (C) 2011-24 - ntop.org This file is part of nDPI, an open source deep packet inspection library. nDPI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later @@ -18,8 +18,8 @@ from _ndpi import ffi, lib ndpi_protocol = namedtuple('NDPIProtocol', ['C', - 'proto.master_protocol', - 'proto.app_protocol', + 'master_protocol', + 'app_protocol', 'category']) ndpi_confidence = namedtuple('NDPIConfidence', ['id', @@ -53,8 +53,8 @@ class NDPI(object): int(packet_time_ms), input_info) return ndpi_protocol(C=p, - master_protocol=p.master_protocol, - app_protocol=p.app_protocol, + master_protocol=p.proto.master_protocol, + app_protocol=p.proto.app_protocol, category=p.category) def giveup(self, flow): @@ -62,8 +62,8 @@ class NDPI(object): flow.C, ffi.new("uint8_t*", 0)) return ndpi_protocol(C=p, - master_protocol=p.master_protocol, - app_protocol=p.app_protocol, + master_protocol=p.proto.master_protocol, + app_protocol=p.proto.app_protocol, category=p.category) def protocol_name(self, protocol): |