diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-10-31 13:03:12 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-10-31 13:03:12 +0000 |
commit | cfb3172f33906b3683d63971c3ff7f9f6c3b7504 (patch) | |
tree | a1119c3d64cd079470cd509b04edd5518a3c9165 /epan/dissectors/packet-jmirror.c | |
parent | 3b5c05ddef69ef83bec528713f9325b6b9c27900 (diff) |
Populate protocol column before digging into the buffer (we might throw an exception while doing that)
svn path=/trunk/; revision=30780
Diffstat (limited to 'epan/dissectors/packet-jmirror.c')
-rw-r--r-- | epan/dissectors/packet-jmirror.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-jmirror.c b/epan/dissectors/packet-jmirror.c index 2f06fc317e..e4374d5092 100644 --- a/epan/dissectors/packet-jmirror.c +++ b/epan/dissectors/packet-jmirror.c @@ -111,15 +111,15 @@ dissect_jmirror(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if ( !( dissector_handle = get_heuristic_handle(tvb) ) ) return 0; + /* Populate the Protocol field in the Wireshark packet display */ + col_set_str(pinfo->cinfo, COL_PROTOCOL, "Jmirror"); + /* Build the Jmirror Identifier value and store the string in a buffer */ midval = tvb_get_ntohl(tvb, offset); /* Build the Session Identifier value and store the string in a buffer */ sidval = tvb_get_ntohl(tvb, offset+MIRROR_ID_SZ); - /* Populate the Protocol field in the Wireshark packet display */ - col_set_str(pinfo->cinfo, COL_PROTOCOL, "Jmirror"); - /* Populate the Info field in the Wireshark packet display */ col_add_fstr(pinfo->cinfo, COL_INFO, "MID: 0X%08x (%d), SID: 0x%08x (%d)", midval, midval, sidval, sidval); |