-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue #9 - Wireshark plugins do not work in 1.12 due to check_col()
(cherry picked from commit 7e0e8e6)
- Loading branch information
Showing
2 changed files
with
9 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
* Routines for Bluetooth LMP dissection | ||
* Copyright 2009, Michael Ossmann <[email protected]> | ||
* | ||
* $Id$ | ||
* | ||
* Wireshark - Network traffic analyzer | ||
* By Gerald Combs <[email protected]> | ||
* Copyright 1998 Gerald Combs | ||
|
@@ -1885,12 +1883,10 @@ dissect_btlmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) | |
DISSECTOR_ASSERT(len >= 1); | ||
|
||
/* make entries in protocol column and info column on summary display */ | ||
if (check_col(pinfo->cinfo, COL_PROTOCOL)) | ||
col_set_str(pinfo->cinfo, COL_PROTOCOL, "LMP"); | ||
col_set_str(pinfo->cinfo, COL_PROTOCOL, "LMP"); | ||
|
||
/* clear the info column first just in case of type fetching failure. */ | ||
if (check_col(pinfo->cinfo, COL_INFO)) | ||
col_clear(pinfo->cinfo, COL_INFO); | ||
col_clear(pinfo->cinfo, COL_INFO); | ||
|
||
op = tvb_get_guint8(tvb, offset) >> 1; | ||
|
||
|
@@ -1899,13 +1895,11 @@ dissect_btlmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) | |
|
||
eop = tvb_get_guint8(tvb, offset + 1); | ||
|
||
if (check_col(pinfo->cinfo, COL_INFO)) | ||
col_add_str(pinfo->cinfo, COL_INFO, val_to_str(eop, | ||
opcode, "Unknown Extended Opcode (%d)")); | ||
col_add_str(pinfo->cinfo, COL_INFO, val_to_str(eop, | ||
opcode, "Unknown Extended Opcode (%d)")); | ||
} else { | ||
if (check_col(pinfo->cinfo, COL_INFO)) | ||
col_add_str(pinfo->cinfo, COL_INFO, val_to_str(op, | ||
opcode, "Unknown Opcode (%d)")); | ||
col_add_str(pinfo->cinfo, COL_INFO, val_to_str(op, | ||
opcode, "Unknown Opcode (%d)")); | ||
} | ||
|
||
/* see if we are being asked for details */ | ||
|