static void dissect_ismacryp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { if (check_col(pinfo->cinfo, COL_INFO)){ col_clear(pinfo->cinfo,COL_INFO); /* clear column info */ col_append_str(pinfo->cinfo, COL_INFO, "Manual version"); } dissect_ismacryp_common( tvb, pinfo, tree, version_type); /* Unknown version type: Use preference */ }
/* dissect_ismacryp_v20 gets called if rtp_dyn_payload_type = "enc-isoff-generic" i.e. is set via SDP */ static void dissect_ismacryp_v20(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { /* display ISMACryp version */ col_set_str(pinfo->cinfo, COL_PROTOCOL, PROTO_TAG_ISMACRYP_20); /* display RTP payload type */ col_set_str(pinfo->cinfo, COL_INFO, "(PT=enc-isoff-generic)"); dissect_ismacryp_common( tvb, pinfo, tree, V20); }
/* dissect_ismacryp_v11 gets called if rtp_dyn_payload_type = "enc-mpeg4-generic" i.e. is set via SDP */ static void dissect_ismacryp_v11(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { /* display ISMACryp version */ if (check_col(pinfo->cinfo, COL_PROTOCOL)) col_set_str(pinfo->cinfo, COL_PROTOCOL, PROTO_TAG_ISMACRYP_11); /* display RTP payload type */ if ( check_col( pinfo->cinfo, COL_INFO) ) { col_clear(pinfo->cinfo,COL_INFO); /* clear column info */ col_append_str(pinfo->cinfo, COL_INFO, "(PT=enc-mpeg4-generic)"); } dissect_ismacryp_common( tvb, pinfo, tree, V11); }
static void dissect_ismacryp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { col_set_str(pinfo->cinfo, COL_INFO, "Manual version"); dissect_ismacryp_common( tvb, pinfo, tree, version_type); /* Unknown version type: Use preference */ }