diff options
author | Michael Mann <mmann78@netscape.net> | 2017-10-30 15:57:34 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-11-01 02:41:45 +0000 |
commit | 66b441f3d63e21949530d672bf1406dea94ed254 (patch) | |
tree | 82fef0bb973e0907d9333e980a95f4c2531baba0 /epan/packet_info.h | |
parent | d518f28b395a7d1c8588c8f321ad5ade194fb423 (diff) |
Add ability to create endpoints through conversations
Add endpoint information to the packet_info structure for dissectors
to potentially use as their data to create conversations.
This patch includes a simple "example" of using conversation_create_endpoint
with TDMoP. The assignment of the PT_TDMOP "port type" has been replaced by
setting ENDPOINT_TDMOP within the endpoint structure. Then when subdissectors
of TDMoP call find_or_create_conversation(), it implicitly picks up the
conversation information set by TDMoP
Change-Id: I11dc29989cccd3b0f0349ee901babb455ca02d19
Reviewed-on: https://code.wireshark.org/review/24190
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Andrew Chernyh <andrew.chernyh@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/packet_info.h')
-rw-r--r-- | epan/packet_info.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/packet_info.h b/epan/packet_info.h index f31ec9fc6e..ca8fca50d4 100644 --- a/epan/packet_info.h +++ b/epan/packet_info.h @@ -27,6 +27,8 @@ #include "tvbuff.h" #include "address.h" +struct endpoint; + /** @file * Dissected packet data and metadata. */ @@ -83,6 +85,8 @@ typedef struct _packet_info { guint32 destport; /**< destination port */ guint32 match_uint; /**< matched uint for calling subdissector from table */ const char *match_string; /**< matched string for calling subdissector from table */ + gboolean use_endpoint; /**< TRUE if endpoint member should be used for conversations */ + struct endpoint* conv_endpoint; /**< Data that can be used for conversations */ guint16 can_desegment; /**< >0 if this segment could be desegmented. A dissector that can offer this API (e.g. TCP) sets can_desegment=2, then |