diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2014-04-10 17:46:25 +0200 |
---|---|---|
committer | Michal Labedzki <michal.labedzki@tieto.com> | 2014-05-30 11:25:35 +0000 |
commit | e3473c921fe1780b23cb0f046d0c2a7558743518 (patch) | |
tree | 8e39d888465ad603b82cd10aa24270c342dfd6e3 /epan/dissectors/packet-btl2cap.h | |
parent | 2abc54158dd6c7c66680ddddb9927501d9e12d50 (diff) |
Bluetooth: AVDTP: Upgrade session logic
To correctly resolve connections single "ID" value
like L2CAP PSM, is not enough, because next connection may use
the same PSM value. Solution is save frame number of frame that
make disconnection.
Conclusion:
Any session key values should be updated to pair:
{ID_1, disconnect_in_frame}, {ID_2, disconnect_in_frame}...
then we should check if "disconnect_in_frame" is greater then
current frame number, otherwise it is not valid session.
Change-Id: I3d760112b6e53358a93c994f4aae455ac1bf5de6
Reviewed-on: https://code.wireshark.org/review/1878
Tested-by: Michal Labedzki <michal.labedzki@tieto.com>
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'epan/dissectors/packet-btl2cap.h')
-rw-r--r-- | epan/dissectors/packet-btl2cap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-btl2cap.h b/epan/dissectors/packet-btl2cap.h index cd3258548d..27340cefeb 100644 --- a/epan/dissectors/packet-btl2cap.h +++ b/epan/dissectors/packet-btl2cap.h @@ -56,6 +56,7 @@ typedef struct _btl2cap_data_t { guint16 cid; gint32 scid; gint32 dcid; + guint32 *disconnect_in_frame; gboolean is_local_psm; /* otherwise it is PSM in remote device */ guint16 psm; guint32 first_scid_frame; |