forked from osmocom/wireshark
Extend the switch statement.
svn path=/trunk/; revision=42879
This commit is contained in:
parent
d52a12c60e
commit
55261641d9
2 changed files with 9 additions and 4 deletions
|
@ -6557,7 +6557,7 @@ enum TransportFormatSet_type_enum
|
|||
DCH_DL,
|
||||
CPCH,
|
||||
FACH,
|
||||
PCH,
|
||||
PCH
|
||||
};
|
||||
|
||||
enum TransportFormatSet_type_enum transportFormatSet_type;
|
||||
|
|
|
@ -1047,9 +1047,14 @@ rlc_decode_li(enum rlc_mode mode, tvbuff_t *tvb, packet_info *pinfo, proto_tree
|
|||
guint16 total_len;
|
||||
|
||||
switch (mode) {
|
||||
case RLC_AM: offs = 1; break;
|
||||
case RLC_UM: offs = 0; break;
|
||||
case RLC_TM: return -1;
|
||||
case RLC_AM: offs = 1;
|
||||
break;
|
||||
case RLC_UM: offs = 0;
|
||||
break;
|
||||
case RLC_TM:
|
||||
/* fall trough */
|
||||
case RLC_MODE_UNKNOWN:
|
||||
return -1;
|
||||
}
|
||||
hdr_len = offs;
|
||||
/* calculate header length */
|
||||
|
|
Loading…
Reference in a new issue