Add Answer or Request to the Command name in the info column depending on
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 25 Aug 2008 21:15:55 +0000 (21:15 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 25 Aug 2008 21:15:55 +0000 (21:15 +0000)
if the R bit is set or not.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2828

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

epan/dissectors/packet-diameter.c

index 53656b48ab58a0ea7011db8e492f22b7cc238014..83c5694be15a22d63a0c79bccc8fd41e6c7192cc 100644 (file)
@@ -709,8 +709,9 @@ dissect_diameter_common(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree)
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_add_fstr(pinfo->cinfo, COL_INFO,
-                            "cmd=%s(%d) flags=%s %s=%s(%d) h2h=%x e2e=%x",
+                            "cmd=%s%s(%d) flags=%s %s=%s(%d) h2h=%x e2e=%x",
                             cmd_str,
+                                ((flags_bits>>4)&0x08) ? "Request" : "Answer",
                             cmd,
                             msgflags_str[((flags_bits>>4)&0x0f)],
                             c->version_rfc ? "appl" : "vend",