From Yuriy Sidelnikov: call ACSI dissector for data blocks.

svn path=/trunk/; revision=10468
This commit is contained in:
Guy Harris 2004-03-23 19:37:23 +00:00
parent 451b3ee8c1
commit e61c2f9ecc
2 changed files with 16 additions and 3 deletions

View File

@ -2,7 +2,7 @@
*
* Routine to dissect ISO 8823 OSI Presentation Protocol packets
*
* $Id: packet-pres.c,v 1.3 2004/03/13 09:27:38 guy Exp $
* $Id: packet-pres.c,v 1.4 2004/03/23 19:37:23 guy Exp $
*
* Yuriy Sidelnikov <YSidelnikov@hotmail.com>
*
@ -159,6 +159,7 @@ static const value_string presentation_data_values[] =
{SINGLE_ASN1_TYPE,"Single ASN.1 type"},
{OCTET_ALIGNED,"Octet aligned"},
{ARBITRARY,"Arbitrary"},
{DATA_BLOCK,"Data block"},
{0, NULL}
};
static const value_string provider_abort_values_vals[] =
@ -746,7 +747,18 @@ new_item_len+(asn->offset-*offset)+1,
}
break;
case OCTET_ALIGNED:
break;
case DATA_BLOCK:
{
proto_item *acse_ms;
/* yes, we have to call ACSE dissector */
acse_ms = proto_tree_add_text(pres_tree_ms, tvb, *offset,new_item_len+(asn->offset-*offset),
"User data");
session->abort_type = DATA_BLOCK;
/* call acse dissector */
call_acse_dissector(tvb,*offset,new_item_len,global_pinfo,global_tree,pres_tree_ms);
}
break;
case SINGLE_ASN1_TYPE:
{

View File

@ -2,7 +2,7 @@
*
* Routine to dissect ISO 8823 OSI Presentation Protocol packets
*
* $Id: packet-pres.h,v 1.1 2004/01/13 02:10:25 guy Exp $
* $Id: packet-pres.h,v 1.2 2004/03/23 19:37:23 guy Exp $
*
* Yuriy Sidelnikov <YSidelnikov@hotmail.com>
*
@ -103,6 +103,7 @@ NO_PSAP_AVAILABLE
#define SINGLE_ASN1_TYPE 0xa0
#define OCTET_ALIGNED 0xa1
#define ARBITRARY 0xa2
#define DATA_BLOCK 0x81
/* provider reasons */
enum