Commit 5b5d702b authored by Claes Sjofors's avatar Claes Sjofors

Wireshark qcom dissector, CircBuff messages added, and handling of middle and last segments

parent c15fab71
...@@ -1139,6 +1139,11 @@ dissect_qcom(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) ...@@ -1139,6 +1139,11 @@ dissect_qcom(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
is_mhreturn = 0; is_mhreturn = 0;
is_sev = 0; is_sev = 0;
if ( is_user) { if ( is_user) {
if ( msg_flags & mSeg_middle && !(msg_flags & mSeg_first))
strcpy( info, "Middle segment");
else if ( msg_flags & mSeg_last && !(msg_flags & mSeg_first))
strcpy( info, "Last segment");
else {
receiver_qix = tvb_get_ntohl( tvb, header_size + 12); receiver_qix = tvb_get_ntohl( tvb, header_size + 12);
reply_qix = tvb_get_ntohl( tvb, header_size + 20); reply_qix = tvb_get_ntohl( tvb, header_size + 20);
btype = tvb_get_ntohl( tvb, header_size + 28); btype = tvb_get_ntohl( tvb, header_size + 28);
...@@ -1438,6 +1443,18 @@ dissect_qcom(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) ...@@ -1438,6 +1443,18 @@ dissect_qcom(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
case net_eMsg_fileListR: case net_eMsg_fileListR:
strcpy( info, "FileListR"); strcpy( info, "FileListR");
break; break;
case net_eMsg_getCircBuffer:
strcpy( info, "GetCircBuffer");
break;
case net_eMsg_getCircBufferR:
strcpy( info, "GetCircBufferR");
break;
case net_eMsg_updateCircBuffer:
strcpy( info, "UpdateCircBuffer");
break;
case net_eMsg_updateCircBufferR:
strcpy( info, "UpdateCircBufferR");
break;
case net_eMsg_volumes7: case net_eMsg_volumes7:
strcpy( info, "Volumes7"); strcpy( info, "Volumes7");
break; break;
...@@ -1675,6 +1692,9 @@ dissect_qcom(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) ...@@ -1675,6 +1692,9 @@ dissect_qcom(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
strcpy( info, "Unknown basetype"); strcpy( info, "Unknown basetype");
} }
} }
if ( msg_flags & mSeg_first && !(msg_flags & mSeg_last))
strcat( info, " First segment");
}
if (check_col(pinfo->cinfo, COL_PROTOCOL)) { if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
col_set_str(pinfo->cinfo, COL_PROTOCOL, protostrp); col_set_str(pinfo->cinfo, COL_PROTOCOL, protostrp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment