Get rid of unused information.
authorGuy Harris <guy@alum.mit.edu>
Tue, 6 Mar 2018 23:17:13 +0000 (15:17 -0800)
committerGuy Harris <guy@alum.mit.edu>
Tue, 6 Mar 2018 23:17:55 +0000 (23:17 +0000)
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>
epan/dissectors/packet-tn3270.c

index 104132af820b9a50391ae82dd57931eeb79910ba..b7bb18241c30e087aebefe1ef9a0298233593755 100644 (file)
@@ -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);
   }