/* Validate PDU Type.3 Validaes the encoding. Add Expert Info if format invalid This also validates Spec Type.3.1.  */
static void validate_c4(packet_info *pinfo, proto_item *pi, guint32, gint len)
/* Validate PDU Type.3 Validaes the encoding. Add Expert Info if format invalid This also validates Spec Type.3.1.  */
static void validate_c4(packet_info *pinfo, proto_item *pi, guint32, gint len)
{
    if (len > 1 && val < 0x80)
    {
        expert_add_info_format(pinfo, pi, &ei_c2_c3_c4_format, "DOF Violation: Type.3.1: Compressed 32-bit Compression Manditory.");
    }
    if (len > 2 && val < 0x4000)
    {
        expert_add_info_format(pinfo, pi, &ei_c2_c3_c4_format, "DOF Violation: Type.3.1: Compressed 32-bit Compression Manditory.");
    }
}