mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Support for encoding additional fields to TLV
This commit is contained in:
parent
373d224534
commit
9bd00fa0ee
6 changed files with 88 additions and 15 deletions
|
|
@ -84,6 +84,7 @@ class Flow : public GenericHashEntry {
|
|||
custom_app_t custom_app;
|
||||
void *cli_id, *srv_id;
|
||||
json_object *json_info;
|
||||
ndpi_serializer *tlv_info;
|
||||
char *host_server_name, *bt_hash;
|
||||
#ifdef HAVE_NEDGE
|
||||
u_int32_t last_conntrack_update;
|
||||
|
|
@ -314,6 +315,7 @@ class Flow : public GenericHashEntry {
|
|||
};
|
||||
u_int16_t getStatsProtocol() const;
|
||||
void setJSONInfo(json_object *json);
|
||||
void setTLVInfo(ndpi_serializer *tlv);
|
||||
#ifdef NTOPNG_PRO
|
||||
inline bool is_status_counted_in_aggregated_flow() const { return(status_counted_in_aggregated_flow); };
|
||||
inline bool is_counted_in_aggregated_flow() const { return(counted_in_aggregated_flow); };
|
||||
|
|
@ -369,6 +371,7 @@ class Flow : public GenericHashEntry {
|
|||
inline const IpAddress* get_cli_ip_addr() const { return(cli_ip_addr); };
|
||||
inline const IpAddress* get_srv_ip_addr() const { return(srv_ip_addr); };
|
||||
inline json_object* get_json_info() const { return(json_info); };
|
||||
inline ndpi_serializer* get_tlv_info() const { return(tlv_info); };
|
||||
inline bool has_long_icmp_payload() const { return(protos.icmp.has_long_icmp_payload); };
|
||||
inline void set_long_icmp_payload() { protos.icmp.has_long_icmp_payload = true; };
|
||||
inline ndpi_protocol_breed_t get_protocol_breed() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue