Fix for bug http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1106
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 21 Sep 2006 19:39:42 +0000 (19:39 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 21 Sep 2006 19:39:42 +0000 (19:39 +0000)
packet-lapd.c change on 2006-03-02 (17452) by etxrab swaps SRC/DST for the default case
And added a comment to Q.931

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

epan/dissectors/packet-lapd.c
epan/dissectors/packet-q931.c

index d62a40e7105d21978c8fb34f5e9946dcb87ca929..b97ca4f918bedda6413a3b94e23cabe74ec3bd9f 100644 (file)
@@ -176,12 +176,12 @@ dissect_lapd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                        }
                }
        }
-       else if (pinfo->p2p_dir == P2P_DIR_SENT) {
+       else if (pinfo->p2p_dir == P2P_DIR_RECV) {
                is_response = cr ? FALSE : TRUE;
                srcname = "Network";
                dstname = "User";
        }
-       else if (pinfo->p2p_dir == P2P_DIR_RECV) {
+       else if (pinfo->p2p_dir == P2P_DIR_SENT) {
                is_response = cr ? TRUE : FALSE;
                srcname = "User";
                dstname = "Network";
index 3ec47632a0dac7258e88bcd5f2b02305cda9612a..de8426da2f8e31b9b895e9a8877cce210fcaf583 100644 (file)
@@ -195,6 +195,12 @@ const value_string q931_message_type_vals[] = {
        { 0,                            NULL }
 };
 
+/*
+ * NOTE  For call reference flag (octet 2)
+ * Bit8
+ *     0 The message is sent from the side that originates the call reference
+ *     1 The message is sent to the side that originates the call reference
+ */
 static const true_false_string tfs_call_ref_flag = {
        "Message sent to originating side",
        "Message sent from originating side"