diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-03-06 15:17:13 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-03-06 23:17:55 +0000 |
commit | 0ddaec13a162c01928e310c4f92532cdb70d45c0 (patch) | |
tree | 187a9fa02f5245d1c2d10365f675600d2ad52cc8 /epan/dissectors | |
parent | 98ab887a2d4ffbe7b255655c510b676c32e93608 (diff) |
Get rid of unused information.
We only need to know the outbound port, so we can determine whether this
is to or from the host.
Fix a comment to reflect reality while we're at it.
Change-Id: If01df5aeb73900850a0de9f9f9731c6fa7f094bb
Reviewed-on: https://code.wireshark.org/review/26298
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-tn3270.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/epan/dissectors/packet-tn3270.c b/epan/dissectors/packet-tn3270.c index 104132af82..b7bb18241c 100644 --- a/epan/dissectors/packet-tn3270.c +++ b/epan/dissectors/packet-tn3270.c @@ -1226,14 +1226,10 @@ static const value_string vals_tn3270_header_response_flags_response[] = { }; /* - * Data structure attached to a conversation, giving authentication - * information from a bind request. + * Data structure attached to a conversation, giving session information. */ typedef struct tn3270_conv_info_t { - address outbound_addr; guint32 outbound_port; - address inbound_addr; - guint32 inbound_port; gint extended; guint8 altrows; guint8 altcols; @@ -5295,12 +5291,8 @@ add_tn3270_conversation(packet_info *pinfo, int tn3270e, gint model) */ tn3270_info = wmem_new(wmem_file_scope(), tn3270_conv_info_t); - copy_address_wmem(wmem_file_scope(), &(tn3270_info->outbound_addr), &(pinfo->dst)); tn3270_info->outbound_port = pinfo->destport; - copy_address_wmem(wmem_file_scope(), &(tn3270_info->inbound_addr), &(pinfo->src)); - tn3270_info->inbound_port = pinfo->srcport; - conversation_add_proto_data(conversation, proto_tn3270, tn3270_info); } |