forked from osmocom/wireshark
AT: Allow more CMEE command types
Code was only allowing actions, while 'test', 'read' ,'action simply' and 'response' are also possible Change-Id: Iee84dd77912debe96a06f0b7d6b3e1f15527ce3b Reviewed-on: https://code.wireshark.org/review/28997 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
522b737b57
commit
93d50f542f
|
@ -446,7 +446,9 @@ static gboolean check_cops(gint role, guint16 type) {
|
|||
}
|
||||
|
||||
static gboolean check_cmee(gint role, guint16 type) {
|
||||
if (role == ROLE_DTE && type == TYPE_ACTION) return TRUE;
|
||||
if (role == ROLE_DTE && (type == TYPE_ACTION || type == TYPE_ACTION_SIMPLY ||
|
||||
type == TYPE_TEST || type == TYPE_READ)) return TRUE;
|
||||
if (role == ROLE_DCE && type == TYPE_RESPONSE) return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -754,7 +756,8 @@ dissect_cmee_parameter(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
|
|||
{
|
||||
guint32 value;
|
||||
|
||||
if (!(role == ROLE_DTE && type == TYPE_ACTION)) {
|
||||
if (!(role == ROLE_DTE && type == TYPE_ACTION) &&
|
||||
!(role == ROLE_DCE && type == TYPE_RESPONSE)) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue