diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-07-31 06:56:13 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-07-31 06:56:13 +0000 |
commit | ad95fa259bc98ff9ed5cce2c3bd1eeaec9aa125e (patch) | |
tree | 083cb550068ced3425c447a259cdf6b0c15a4f76 /asn1/nbap/packet-nbap-template.h | |
parent | 51b40ed15078fda06fb0d2299c22002ea0a96105 (diff) | |
download | wireshark-ad95fa259bc98ff9ed5cce2c3bd1eeaec9aa125e.tar.gz wireshark-ad95fa259bc98ff9ed5cce2c3bd1eeaec9aa125e.tar.bz2 wireshark-ad95fa259bc98ff9ed5cce2c3bd1eeaec9aa125e.zip |
From Jacob Nordgren and Rishie Sharma:
NBAP: added preferences to change logical channel id to mac content type mapping.
svn path=/trunk/; revision=44151
Diffstat (limited to 'asn1/nbap/packet-nbap-template.h')
-rw-r--r-- | asn1/nbap/packet-nbap-template.h | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/asn1/nbap/packet-nbap-template.h b/asn1/nbap/packet-nbap-template.h index f0208c3c7c..659e5ec555 100644 --- a/asn1/nbap/packet-nbap-template.h +++ b/asn1/nbap/packet-nbap-template.h @@ -26,30 +26,12 @@ /* * Ericsson specific mapping for various dissector settings. - * Must be altered for other equipment. + * Must be altered for other equipment. */ - + /*Array are indexed on logical channel id, meaning they need to be defined for 1-15*/ /* Mapping from logical channel id to MAC content type ie. DCCH or DTCH*/ -static const guint8 lchId_type_table[]= { - MAC_CONTENT_UNKNOWN, /*Should't happen*/ - MAC_CONTENT_DCCH, /* 1 to 4 SRB => DCCH*/ - MAC_CONTENT_DCCH, - MAC_CONTENT_DCCH, - MAC_CONTENT_DCCH, - MAC_CONTENT_CS_DTCH, /* 5 to 7 Conv CS speech => ?*/ - MAC_CONTENT_CS_DTCH, - MAC_CONTENT_CS_DTCH, - MAC_CONTENT_DCCH, /* 8 SRB => DCCH*/ - MAC_CONTENT_PS_DTCH, /* 9 maps to DTCH*/ - MAC_CONTENT_UNKNOWN, /* 10 Conv CS unknown*/ - MAC_CONTENT_PS_DTCH, /* 11 Interactive PS => DTCH*/ - MAC_CONTENT_PS_DTCH, /* 12 Streaming PS => DTCH*/ - MAC_CONTENT_CS_DTCH, /* 13 Streaming CS*/ - MAC_CONTENT_PS_DTCH, /* 14 Interatictive PS => DTCH*/ - MAC_CONTENT_CCCH /* This is CCCH? */ - -}; +extern guint8 lchId_type_table[]; /* Mapping logicalchannel id to RLC_MODE */ static const guint8 lchId_rlc_map[] = { @@ -70,7 +52,7 @@ static const guint8 lchId_rlc_map[] = { RLC_AM, RLC_AM, /* This is CCCH which is UM?, probably not */ }; - + /* 1 to 8*/ static const guint8 hsdsch_macdflow_id_rlc_map[] = { RLC_UM, /*1 SRB */ @@ -81,7 +63,7 @@ static const guint8 hsdsch_macdflow_id_rlc_map[] = { RLC_UNKNOWN_MODE, RLC_UNKNOWN_MODE }; - + /* Mapping hsdsch MACd-FlowId to MAC_CONTENT, basically flowid = 1 (0) => SRB*/ /* 1 to 8*/ static const guint8 hsdsch_macdflow_id_mac_content_map[] = { @@ -92,14 +74,14 @@ static const guint8 hsdsch_macdflow_id_mac_content_map[] = { MAC_CONTENT_PS_DTCH, /*5 Streaming PS*/ RLC_UNKNOWN_MODE, RLC_UNKNOWN_MODE, - RLC_UNKNOWN_MODE + RLC_UNKNOWN_MODE }; - + /* Make fake logical channel id's based on MACdFlow-ID's*/ static const guint8 fake_lchid_macd_flow[] = {1,9,14,11,0,12}; static const value_string lchid_name_resolve[] = { - {1,"DCCH"}, /* 1 to 4 SRB => DCCH*/ + {1,"DCCH"}, /* 1 to 4 SRB => DCCH*/ {2,"DCCH"}, {3,"DCCH"}, {4,"DCCH"}, |