aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nordic_ble.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2016-08-04 15:56:19 +0200
committerAnders Broman <a.broman58@gmail.com>2016-08-04 13:59:07 +0000
commit7e08f158851910954cbd9d038912a6e46b633cbe (patch)
treeb0669ead4e572ef95f658929c83bb732a6d0e192 /epan/dissectors/packet-nordic_ble.c
parent41e659d91e432f6336c9e3243b8004b3a73a15c4 (diff)
[BTLE-Nordic] Set pinfo->p2p_dir as seen from "Master".
Change-Id: I12ad3a9b092e35a3418a11ec4d17cce157f320b6 Reviewed-on: https://code.wireshark.org/review/16882 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-nordic_ble.c')
-rw-r--r--epan/dissectors/packet-nordic_ble.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-nordic_ble.c b/epan/dissectors/packet-nordic_ble.c
index 434bc8db68..2094b00e69 100644
--- a/epan/dissectors/packet-nordic_ble.c
+++ b/epan/dissectors/packet-nordic_ble.c
@@ -368,11 +368,13 @@ dissect_flags(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, btle_context_
set_address(&pinfo->src, AT_STRINGZ, 7, "Master");
set_address(&pinfo->dst, AT_STRINGZ, 6, "Slave");
context->direction = BTLE_DIR_MASTER_SLAVE;
+ pinfo->p2p_dir = P2P_DIR_SENT;
}
else {
set_address(&pinfo->src, AT_STRINGZ, 6, "Slave");
set_address(&pinfo->dst, AT_STRINGZ, 7, "Master");
context->direction = BTLE_DIR_SLAVE_MASTER;
+ pinfo->p2p_dir = P2P_DIR_RECV;
}
@@ -488,8 +490,6 @@ dissect_header_0_9_7(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, btle_c
ti = proto_tree_add_item(tree, proto_nordic_ble, tvb, 0, -1, ENC_NA);
nordic_ble_tree = proto_item_add_subtree(ti, ett_nordic_ble);
- pinfo->p2p_dir = P2P_DIR_RECV;
-
/*** PROTOCOL TREE ***/
dissect_packet_counter(tvb, nordic_ble_tree);
@@ -509,7 +509,6 @@ dissect_header_1_0_0(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, btle_c
proto_item *ti;
proto_tree *nordic_ble_tree;
- pinfo->p2p_dir = P2P_DIR_RECV;
/*** PROTOCOL TREE ***/