From Mark C. Brown:
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 20 Apr 2006 20:29:57 +0000 (20:29 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 20 Apr 2006 20:29:57 +0000 (20:29 +0000)
Small patch to set the direction correctly.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17934 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-nettl.c

index 4f5888ed96f0500ed536b3968bbaed8b5cb2759d..e3857eb2d467338e46eb7dab4be27688d96d5052 100644 (file)
@@ -247,6 +247,10 @@ dissect_nettl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                    call_dissector(data_handle, tvb, pinfo, tree);
             break;
          case WTAP_ENCAP_NETTL_X25:
+           if (pinfo->pseudo_header->nettl.kind == NETTL_HDR_PDUIN)
+               pinfo->p2p_dir = P2P_DIR_RECV;
+           else if (pinfo->pseudo_header->nettl.kind == NETTL_HDR_PDUOUT)
+               pinfo->p2p_dir = P2P_DIR_SENT;
            if (pinfo->pseudo_header->nettl.subsys == NETTL_SUBSYS_SX25L2)
                call_dissector(lapb_handle, tvb, pinfo, tree);
            else