From 7838ee9d1a1dddfc1f3a08989b48ca6742c9b16f Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Wed, 27 Apr 2016 22:40:07 -0400 Subject: Add TCP preference for Process information from IPFIX The preference is disabled by default and saves a little bit of memory for those that don't get process information from IPFIX. Change-Id: I4b6a106d156862a8d53bf2ad5ee88ea857637815 Reviewed-on: https://code.wireshark.org/review/15139 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- epan/dissectors/packet-tcp.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'epan/dissectors/packet-tcp.h') diff --git a/epan/dissectors/packet-tcp.h b/epan/dissectors/packet-tcp.h index a9b25dadcc..b3a068ac54 100644 --- a/epan/dissectors/packet-tcp.h +++ b/epan/dissectors/packet-tcp.h @@ -311,6 +311,15 @@ typedef struct tcp_analyze_seq_flow_info_t { } tcp_analyze_seq_flow_info_t; + /* Process info, currently discovered via IPFIX */ +typedef struct tcp_process_info_t { + guint32 process_uid; /* UID of local process */ + guint32 process_pid; /* PID of local process */ + gchar *username; /* Username of the local process */ + gchar *command; /* Local process name + path + args */ + +} tcp_process_info_t; + typedef struct _tcp_flow_t { guint8 static_flags; /* true if base seq set */ guint32 base_seq; /* base seq number (used by relative sequence numbers)*/ @@ -341,10 +350,7 @@ typedef struct _tcp_flow_t { wmem_tree_t *multisegment_pdus; /* Process info, currently discovered via IPFIX */ - guint32 process_uid; /* UID of local process */ - guint32 process_pid; /* PID of local process */ - gchar *username; /* Username of the local process */ - gchar *command; /* Local process name + path + args */ + tcp_process_info_t* process_info; /* MPTCP subflow intel */ struct mptcp_subflow *mptcp_subflow; -- cgit v1.2.3