more usage of #.FN_PARS directive and usage of DEFAULT_BODY parameter

svn path=/trunk/; revision=14864
This commit is contained in:
Tomas Kukosa 2005-07-06 16:19:34 +00:00
parent 3f36906e3a
commit 2c70677901
2 changed files with 41 additions and 41 deletions

View File

@ -224,37 +224,36 @@ CallIdentifier/guid guid
offset=dissect_per_restricted_character_string(tvb, offset, pinfo, tree, hf_index, 1, 128, "#,*0123456789", 13, NULL, 0);
#.END
#----------------------------------------------------------------------------------------
#.FN_PARS H245TransportAddress/h245ipAddress/h245ipv4
VAL_PTR = &value_tvb
#.FN_BODY H245TransportAddress/h245ipAddress/h245ipv4
tvbuff_t *value_tvb;
offset = dissect_per_octet_string(tvb, offset, pinfo, tree, hf_index,
4, 4,
&value_tvb);
%(DEFAULT_BODY)s
tvb_memcpy(value_tvb, (char *)&ipv4_address, 0, 4);
#.END
#----------------------------------------------------------------------------------------
#.FN_PARS H245TransportAddress/h245ipAddress/h245ipv4port
VAL_PTR = &ipv4_port
#.END
#----------------------------------------------------------------------------------------
#.FN_HDR ParallelH245Control/_item
tvbuff_t *h245_tvb = NULL;
#.FN_PARS ParallelH245Control/_item
VAL_PTR = &h245_tvb
#.FN_FTR ParallelH245Control/_item
#.FN_BODY ParallelH245Control/_item
tvbuff_t *h245_tvb = NULL;
%(DEFAULT_BODY)s
if (h245_tvb && tvb_length(h245_tvb)) {
call_dissector(h245dg_handle, h245_tvb, pinfo, tree);
}
#.END
#----------------------------------------------------------------------------------------
#.FN_HDR H245Control/_item
tvbuff_t *h245_tvb = NULL;
#.FN_PARS H245Control/_item
VAL_PTR = &h245_tvb
#.FN_FTR H245Control/_item
#.FN_BODY H245Control/_item
tvbuff_t *h245_tvb = NULL;
%(DEFAULT_BODY)s
if (h245_tvb && tvb_length(h245_tvb)) {
call_dissector(h245dg_handle, h245_tvb, pinfo, tree);
}
@ -291,8 +290,8 @@ CallIdentifier/guid guid
g_snprintf(h225_pi->frame_label, 50, "%s", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>"));
#.END
#----------------------------------------------------------------------------------------
#.FN_BODY H323-UU-PDU/h245Tunneling
offset=dissect_per_boolean(tvb, offset, pinfo, tree, hf_h225_h245Tunneling, &(h225_pi->is_h245Tunneling), NULL);
#.FN_PARS H323-UU-PDU/h245Tunneling
VAL_PTR = &(h225_pi->is_h245Tunneling)
#.END
#----------------------------------------------------------------------------------------
#.FN_HDR Setup-UUIE
@ -479,6 +478,8 @@ CallIdentifier/guid guid
h225_pi->reason = value;
#.END
#----------------------------------------------------------------------------------------
#.FN_PARS CallIdentifier/guid
VAL_PTR = &guid_tvb
#.FN_BODY CallIdentifier/guid
tvbuff_t *guid_tvb;
@ -490,11 +491,12 @@ CallIdentifier/guid guid
VAL_PTR = &(h225_pi->requestSeqNum)
#.END
#----------------------------------------------------------------------------------------
#.FN_PARS H323-UU-PDU/h4501SupplementaryService/_item
VAL_PTR = &h4501_tvb
#.FN_BODY H323-UU-PDU/h4501SupplementaryService/_item
tvbuff_t *h4501_tvb = NULL;
offset=dissect_per_octet_string(tvb, offset, pinfo, tree, -1, -1, -1, &h4501_tvb);
%(DEFAULT_BODY)s
if(tvb_length(h4501_tvb)){
call_dissector(h4501_handle, h4501_tvb, pinfo, tree);
}
@ -513,11 +515,12 @@ CallIdentifier/guid guid
#.FN_HDR H323-UU-PDU/tunnelledSignallingMessage
tp_handle = NULL;
#.FN_HDR H323-UU-PDU/tunnelledSignallingMessage/messageContent/_item
tvbuff_t *next_tvb = NULL;
#.FN_PARS H323-UU-PDU/tunnelledSignallingMessage/messageContent/_item
VAL_PTR = &next_tvb
#.FN_FTR H323-UU-PDU/tunnelledSignallingMessage/messageContent/_item
#.FN_BODY H323-UU-PDU/tunnelledSignallingMessage/messageContent/_item
tvbuff_t *next_tvb = NULL;
%(DEFAULT_BODY)s
if (next_tvb && tvb_length(next_tvb)) {
call_dissector((tp_handle)?tp_handle:data_handle, next_tvb, pinfo, tree);
}
@ -565,11 +568,12 @@ H221NonStandard/manufacturerCode VAL_PTR = &manufacturerCode
#.FN_HDR NonStandardParameter
nsp_handle = NULL;
#.FN_HDR NonStandardParameter/data
tvbuff_t *next_tvb = NULL;
#.FN_PARS NonStandardParameter/data
VAL_PTR = &next_tvb
#.FN_FTR NonStandardParameter/data
#.FN_BODY NonStandardParameter/data
tvbuff_t *next_tvb = NULL;
%(DEFAULT_BODY)s
if (next_tvb && tvb_length(next_tvb)) {
call_dissector((nsp_handle)?nsp_handle:data_handle, next_tvb, pinfo, tree);
}
@ -588,4 +592,4 @@ H323-UU-PDU/tunnelledSignallingMessage/messageContent/_item TYPE = FT_UINT32 DI
NonStandardParameter/data TYPE = FT_UINT32 DISPLAY = BASE_DEC
ParallelH245Control/_item TYPE = FT_UINT32 DISPLAY = BASE_DEC
H245Control/_item TYPE = FT_UINT32 DISPLAY = BASE_DEC
GloballyUniqueID TYPE = FT_GUID DISPLAY = BASE_NONE
GloballyUniqueID TYPE = FT_GUID DISPLAY = BASE_NONE

View File

@ -264,19 +264,15 @@ OpenLogicalChannel
h245_pi->msg_type = H245_OpenLogChnAck;
#.END
#----------------------------------------------------------------------------------------
#.FN_BODY CapabilityIdentifier/standard
offset = dissect_per_object_identifier(tvb, offset, pinfo, tree, hf_index,
standard_oid_str);
#.FN_PARS CapabilityIdentifier/standard
VAL_PTR = standard_oid_str
#.END
#----------------------------------------------------------------------------------------
#.FN_BODY GenericMessage/subMessageIdentifer
guint32 subMessageIdentifer;
offset = dissect_per_constrained_integer(tvb, offset, pinfo, tree, hf_index,
0U, 127U, &subMessageIdentifer, NULL, FALSE);
#.FN_HDR GenericMessage/subMessageIdentifer
guint32 subMessageIdentifer;
#.FN_PARS GenericMessage/subMessageIdentifer
VAL_PTR = &subMessageIdentifer
#.END
#----------------------------------------------------------------------------------------
#.FN_BODY UnicastAddress/iPAddress/network
@ -293,13 +289,12 @@ guint32 subMessageIdentifer;
#.END
#----------------------------------------------------------------------------------------
#.FN_PARS UnicastAddress/iPAddress/tsapIdentifier
VAL_PTR = &tsapIdentifier
#.FN_BODY UnicastAddress/iPAddress/tsapIdentifier
guint32 tsapIdentifier;
guint32 tsapIdentifier;
offset=dissect_per_constrained_integer(tvb, offset, pinfo, tree,
hf_h245_tsapIdentifier, 0, 65535,
&tsapIdentifier, NULL, FALSE);
%(DEFAULT_BODY)s
if ( media_channel )
ipv4_port = tsapIdentifier;
@ -459,11 +454,12 @@ NonStandardIdentifier/h221NonStandard/manufacturerCode VAL_PTR = &manufacturerC
#.FN_HDR NonStandardParameter
nsp_handle = NULL;
#.FN_HDR NonStandardParameter/data
tvbuff_t *next_tvb = NULL;
#.FN_PARS NonStandardParameter/data
VAL_PTR = &next_tvb
#.FN_FTR NonStandardParameter/data
#.FN_BODY NonStandardParameter/data
tvbuff_t *next_tvb = NULL;
%(DEFAULT_BODY)s
if (next_tvb && tvb_length(next_tvb)) {
call_dissector((nsp_handle)?nsp_handle:data_handle, next_tvb, pinfo, tree);
}