add dissector
This commit is contained in:
parent
8f9a50bb41
commit
fad50ec11d
12 changed files with 7460 additions and 2 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
firmware/.pio/
|
firmware/.pio/
|
||||||
|
|
||||||
libs/__pycache__/
|
*__pycache__*
|
||||||
|
|
||||||
*__pycache__*
|
dissectors/build/
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import _ctypes
|
import _ctypes
|
||||||
|
|
3
dissectors/AUTHORS
Normal file
3
dissectors/AUTHORS
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Authors:
|
||||||
|
Jiska Classen / Secure Mobile Networking Lab
|
||||||
|
Michael Ossmann <mike@ossmann.com>
|
58
dissectors/CMakeLists.txt
Normal file
58
dissectors/CMakeLists.txt
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
# CMakeLists.txt
|
||||||
|
#
|
||||||
|
# Wireshark - Network traffic analyzer By Gerald Combs <gerald@wireshark.org>
|
||||||
|
# Copyright 1998 Gerald Combs
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
#
|
||||||
|
|
||||||
|
include(WiresharkPlugin)
|
||||||
|
include(UseMakePluginReg)
|
||||||
|
|
||||||
|
# Plugin name and version info (major minor micro extra)
|
||||||
|
set_module_info(h4bcm 1 1 0 0)
|
||||||
|
|
||||||
|
set(DISSECTOR_SRC packet-h4bcm.c packet-btbrlmp.c)
|
||||||
|
|
||||||
|
set(PLUGIN_FILES plugin.c ${DISSECTOR_SRC})
|
||||||
|
|
||||||
|
set_source_files_properties(${PLUGIN_FILES} PROPERTIES COMPILE_FLAGS
|
||||||
|
"${WERROR_COMMON_FLAGS}")
|
||||||
|
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
|
register_plugin_files(plugin.c plugin ${DISSECTOR_SRC})
|
||||||
|
|
||||||
|
add_plugin_library(h4bcm epan)
|
||||||
|
|
||||||
|
target_link_libraries(h4bcm epan)
|
||||||
|
|
||||||
|
target_compile_options(h4bcm PRIVATE -w)
|
||||||
|
|
||||||
|
install_plugin(h4bcm epan)
|
||||||
|
|
||||||
|
file(
|
||||||
|
GLOB DISSECTOR_HEADERS
|
||||||
|
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
|
"*.h")
|
||||||
|
checkapi(
|
||||||
|
NAME
|
||||||
|
h4bcm
|
||||||
|
SWITCHES
|
||||||
|
-g
|
||||||
|
abort
|
||||||
|
-g
|
||||||
|
termoutput
|
||||||
|
-build
|
||||||
|
SOURCES
|
||||||
|
${DISSECTOR_SRC}
|
||||||
|
${DISSECTOR_HEADERS})
|
||||||
|
|
||||||
|
#
|
||||||
|
# Editor modelines - https://www.wireshark.org/tools/modelines.html
|
||||||
|
#
|
||||||
|
# Local variables: c-basic-offset: 8 tab-width: 8 indent-tabs-mode: t End:
|
||||||
|
#
|
||||||
|
# vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
||||||
|
# :indentSize=8:tabSize=8:noTabs=false:
|
||||||
|
#
|
340
dissectors/COPYING
Normal file
340
dissectors/COPYING
Normal file
|
@ -0,0 +1,340 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||||
|
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Library General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) 19yy <name of author>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program is interactive, make it output a short notice like this
|
||||||
|
when it starts in an interactive mode:
|
||||||
|
|
||||||
|
Gnomovision version 69, Copyright (C) 19yy name of author
|
||||||
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, the commands you use may
|
||||||
|
be called something other than `show w' and `show c'; they could even be
|
||||||
|
mouse-clicks or menu items--whatever suits your program.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1989
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
This General Public License does not permit incorporating your program into
|
||||||
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Library General
|
||||||
|
Public License instead of this License.
|
40
dissectors/README.md
Normal file
40
dissectors/README.md
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
Bluetooth H4 Broadcom Wireshark plugin from the InternalBlue project
|
||||||
|
====================================================================
|
||||||
|
|
||||||
|
This dissector contains vendor specific additions to the serial protocol
|
||||||
|
H4, which is used by the operating system's driver to interact with
|
||||||
|
Bluetooth chips. Broadcom not only supports sending standard messages
|
||||||
|
such as HCI commands and events but also has an undocumented
|
||||||
|
diagnostic protocol using the H4 serial data type 0x07.
|
||||||
|
|
||||||
|
Subprotocols inside Broadcom's diagnostic protocol include the Link Management
|
||||||
|
Protocol (LMP) and Bluetooth Baseband (BB). The dissectors for LMP and BB were
|
||||||
|
updated to be compatible with Wireshark 3.0. Credit for most of the LMP and BB
|
||||||
|
dissector goes to the original authors of libbtbb.
|
||||||
|
|
||||||
|
About this repository
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
This repository contains only the Wireshark dissector without the rest of
|
||||||
|
Internalblue. All credit goes to the original authors of InternalBlue. For
|
||||||
|
additional information see the original repository:
|
||||||
|
|
||||||
|
https://github.com/seemoo-lab/internalblue
|
||||||
|
|
||||||
|
Build and Install
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
To build this on Debian/Ubuntu/BackTrack linux distributions:
|
||||||
|
|
||||||
|
sudo apt-get install wireshark-dev wireshark cmake
|
||||||
|
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
|
This will install to the ~/.local/lib/wireshark/plugins/3.0/epan/ in your home
|
||||||
|
directory. To override this set the DESTDIR environment variable when running
|
||||||
|
cmake.
|
||||||
|
|
38
dissectors/build.sh
Executable file
38
dissectors/build.sh
Executable file
|
@ -0,0 +1,38 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
PLUGIN_VERSION=2.0.0
|
||||||
|
WIRESHARK_INCLUDES=$(pkg-config wireshark --cflags-only-I)
|
||||||
|
|
||||||
|
mkdir -p build
|
||||||
|
|
||||||
|
clang-11 -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DHAVE_PLUGINS -DPLUGIN_VERSION=\"$PLUGIN_VERSION\" \
|
||||||
|
-Dh4bcm_EXPORTS $WIRESHARK_INCLUDES -I. -fvisibility=hidden -Qunused-arguments \
|
||||||
|
-Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress \
|
||||||
|
-Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wheader-guard \
|
||||||
|
-Wcomma -Wshorten-64-to-32 -Wframe-larger-than=32768 -Wc++-compat -Wunused-const-variable -Wshadow -Wold-style-definition \
|
||||||
|
-Wstrict-prototypes -Werror=implicit -Wno-pointer-sign -std=gnu99 -fno-stack-protector -fpic -Wall -Wno-braced-scalar-init \
|
||||||
|
-Wno-unused-variable -Wno-reorder -O2 -g -DNDEBUG -fPIC -fcolor-diagnostics -w -std=gnu11 -Werror \
|
||||||
|
-o build/packet-h4bcm.c.o -c packet-h4bcm.c
|
||||||
|
|
||||||
|
clang-11 -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DHAVE_PLUGINS -DPLUGIN_VERSION=\"$PLUGIN_VERSION\" \
|
||||||
|
-Dh4bcm_EXPORTS $WIRESHARK_INCLUDES -I. -fvisibility=hidden -Qunused-arguments \
|
||||||
|
-Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress \
|
||||||
|
-Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wheader-guard \
|
||||||
|
-Wcomma -Wshorten-64-to-32 -Wframe-larger-than=32768 -Wc++-compat -Wunused-const-variable -Wshadow -Wold-style-definition \
|
||||||
|
-Wstrict-prototypes -Werror=implicit -Wno-pointer-sign -std=gnu99 -fno-stack-protector -fpic -Wall -Wno-braced-scalar-init \
|
||||||
|
-Wno-unused-variable -Wno-reorder -O2 -g -DNDEBUG -fPIC -fcolor-diagnostics -w -std=gnu11 -Werror \
|
||||||
|
-o build/packet-btbrlmp.c.o -c packet-btbrlmp.c
|
||||||
|
|
||||||
|
clang-11 -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DHAVE_PLUGINS -DPLUGIN_VERSION=\"$PLUGIN_VERSION\" \
|
||||||
|
-Dh4bcm_EXPORTS $WIRESHARK_INCLUDES -I. -fvisibility=hidden -Qunused-arguments \
|
||||||
|
-Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress \
|
||||||
|
-Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wheader-guard \
|
||||||
|
-Wcomma -Wshorten-64-to-32 -Wframe-larger-than=32768 -Wc++-compat -Wunused-const-variable -Wshadow -Wold-style-definition \
|
||||||
|
-Wstrict-prototypes -Werror=implicit -Wno-pointer-sign -std=gnu99 -fno-stack-protector -fpic -Wall -Wno-braced-scalar-init \
|
||||||
|
-Wno-unused-variable -Wno-reorder -O2 -g -DNDEBUG -fPIC -fcolor-diagnostics -w -std=gnu11 -Werror \
|
||||||
|
-o build/plugin.c.o -c plugin.c
|
||||||
|
|
||||||
|
|
||||||
|
gcc --std=gnu11 -fPIC -w -O3 -shared -o h4bcm.so build/packet-btbrlmp.c.o build/packet-h4bcm.c.o build/plugin.c.o -lwireshark -lwiretap -lwsutil
|
||||||
|
|
||||||
|
# sudo cp h4bcm.so /usr/local/lib/wireshark/plugins/3.4/epan/
|
381
dissectors/config.h
Normal file
381
dissectors/config.h
Normal file
|
@ -0,0 +1,381 @@
|
||||||
|
/* cmakeconfig.h.in */
|
||||||
|
|
||||||
|
#ifndef __CONFIG_H__
|
||||||
|
#define __CONFIG_H__
|
||||||
|
|
||||||
|
/* Note: You cannot use earlier #defines in later #cmakedefines (cmake 2.6.2). */
|
||||||
|
|
||||||
|
/* Name of package */
|
||||||
|
#define PACKAGE "wireshark"
|
||||||
|
|
||||||
|
#define VERSION_EXTRA ""
|
||||||
|
|
||||||
|
/* Version number of package */
|
||||||
|
#define VERSION "3.4.0"
|
||||||
|
#define VERSION_MAJOR 3
|
||||||
|
#define VERSION_MINOR 4
|
||||||
|
#define VERSION_MICRO 0
|
||||||
|
|
||||||
|
#define PLUGIN_PATH_ID "3.4"
|
||||||
|
#define VERSION_FLAVOR "Development Build"
|
||||||
|
|
||||||
|
/* Build wsutil with SIMD optimization */
|
||||||
|
#define HAVE_SSE4_2 1
|
||||||
|
|
||||||
|
/* Define to 1 if we want to enable plugins */
|
||||||
|
#define HAVE_PLUGINS 1
|
||||||
|
|
||||||
|
/* Define to 1 if we check hf conflict */
|
||||||
|
/* #undef ENABLE_CHECK_FILTER */
|
||||||
|
|
||||||
|
/* Link Wireshark libraries statically */
|
||||||
|
/* #undef ENABLE_STATIC */
|
||||||
|
|
||||||
|
/* Enable AirPcap */
|
||||||
|
/* #undef HAVE_AIRPCAP */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <alloca.h> header file. */
|
||||||
|
/* #undef HAVE_ALLOCA_H */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
||||||
|
#define HAVE_ARPA_INET_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||||
|
#define HAVE_FCNTL_H 1
|
||||||
|
|
||||||
|
/* Define to use the MaxMind DB library */
|
||||||
|
/* #undef HAVE_MAXMINDDB */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <ifaddrs.h> header file. */
|
||||||
|
#define HAVE_IFADDRS_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if yu have the `fseeko` function. */
|
||||||
|
#define HAVE_FSEEKO 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `getexecname' function. */
|
||||||
|
/* #undef HAVE_GETEXECNAME */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `getifaddrs' function. */
|
||||||
|
#define HAVE_GETIFADDRS 1
|
||||||
|
|
||||||
|
/* Define if LIBSSH support is enabled */
|
||||||
|
/* #undef HAVE_LIBSSH */
|
||||||
|
|
||||||
|
/* Define if you have the 'dlget' function. */
|
||||||
|
/* #undef HAVE_DLGET */
|
||||||
|
|
||||||
|
/* Define if you have the 'getexecname' function. */
|
||||||
|
/* #undef HAVE_GETEXECNAME */
|
||||||
|
|
||||||
|
/* Define if you have the 'floorl' function. */
|
||||||
|
#define HAVE_FLOORL 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the getopt_long function. */
|
||||||
|
#define HAVE_GETOPT_LONG 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <getopt.h> header file. */
|
||||||
|
#define HAVE_GETOPT_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <grp.h> header file. */
|
||||||
|
#define HAVE_GRP_H 1
|
||||||
|
|
||||||
|
/* Define to use heimdal kerberos */
|
||||||
|
/* #undef HAVE_HEIMDAL_KERBEROS */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `krb5_pac_verify' function. */
|
||||||
|
#define HAVE_KRB5_PAC_VERIFY 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `krb5_c_fx_cf2_simple' function. */
|
||||||
|
#define HAVE_KRB5_C_FX_CF2_SIMPLE 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `inflatePrime' function. */
|
||||||
|
#define HAVE_INFLATEPRIME 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `issetugid' function. */
|
||||||
|
/* #undef HAVE_ISSETUGID */
|
||||||
|
|
||||||
|
/* Define to use kerberos */
|
||||||
|
#define HAVE_KERBEROS 1
|
||||||
|
|
||||||
|
/* Define to use nghttp2 */
|
||||||
|
#define HAVE_NGHTTP2 1
|
||||||
|
|
||||||
|
/* Define to use the libcap library */
|
||||||
|
#define HAVE_LIBCAP 1
|
||||||
|
|
||||||
|
/* Define to use GnuTLS library */
|
||||||
|
#define HAVE_LIBGNUTLS 1
|
||||||
|
|
||||||
|
/* Define to 1 if GnuTLS was built with pkcs11 support. */
|
||||||
|
#define HAVE_GNUTLS_PKCS11 1
|
||||||
|
|
||||||
|
/* Enable libnl support */
|
||||||
|
#define HAVE_LIBNL 1
|
||||||
|
|
||||||
|
/* libnl version 1 */
|
||||||
|
/* #undef HAVE_LIBNL1 */
|
||||||
|
|
||||||
|
/* libnl version 2 */
|
||||||
|
/* #undef HAVE_LIBNL2 */
|
||||||
|
|
||||||
|
/* libnl version 3 */
|
||||||
|
#define HAVE_LIBNL3 1
|
||||||
|
|
||||||
|
/* Define to use libpcap library */
|
||||||
|
#define HAVE_LIBPCAP 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `smi' library (-lsmi). */
|
||||||
|
#define HAVE_LIBSMI 1
|
||||||
|
|
||||||
|
/* Define to use zlib library */
|
||||||
|
#define HAVE_ZLIB 1
|
||||||
|
|
||||||
|
/* Define to use the minizip library */
|
||||||
|
/* #undef HAVE_MINIZIP */
|
||||||
|
|
||||||
|
/* Define to use brotli library */
|
||||||
|
#define HAVE_BROTLI 1
|
||||||
|
|
||||||
|
/* Define to use lz4 library */
|
||||||
|
#define HAVE_LZ4 1
|
||||||
|
|
||||||
|
/* Check for lz4frame */
|
||||||
|
#define HAVE_LZ4FRAME_H 1
|
||||||
|
|
||||||
|
/* Define to use snappy library */
|
||||||
|
#define HAVE_SNAPPY 1
|
||||||
|
|
||||||
|
/* Define to use zstd library */
|
||||||
|
#define HAVE_ZSTD 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <linux/sockios.h> header file. */
|
||||||
|
#define HAVE_LINUX_SOCKIOS_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <linux/if_bonding.h> header file. */
|
||||||
|
#define HAVE_LINUX_IF_BONDING_H 1
|
||||||
|
|
||||||
|
/* Define to use Lua */
|
||||||
|
/* #undef HAVE_LUA */
|
||||||
|
|
||||||
|
/* Define to use MIT kerberos */
|
||||||
|
#define HAVE_MIT_KERBEROS 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `mkstemps' function. */
|
||||||
|
#define HAVE_MKSTEMPS 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <netdb.h> header file. */
|
||||||
|
#define HAVE_NETDB_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <netinet/in.h> header file. */
|
||||||
|
#define HAVE_NETINET_IN_H 1
|
||||||
|
|
||||||
|
/* nl80211.h is new enough */
|
||||||
|
#define HAVE_NL80211 1
|
||||||
|
|
||||||
|
/* SET_CHANNEL is supported */
|
||||||
|
#define HAVE_NL80211_CMD_SET_CHANNEL 1
|
||||||
|
|
||||||
|
/* SPLIT_WIPHY_DUMP is supported */
|
||||||
|
#define HAVE_NL80211_SPLIT_WIPHY_DUMP 1
|
||||||
|
|
||||||
|
/* VHT_CAPABILITY is supported */
|
||||||
|
#define HAVE_NL80211_VHT_CAPABILITY 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have macOS frameworks */
|
||||||
|
/* #undef HAVE_MACOS_FRAMEWORKS */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the macOS CFPropertyListCreateWithStream function */
|
||||||
|
/* #undef HAVE_CFPROPERTYLISTCREATEWITHSTREAM */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `pcap_create' function. */
|
||||||
|
/* #undef HAVE_PCAP_CREATE */
|
||||||
|
|
||||||
|
/* Define to 1 if the capture buffer size can be set. */
|
||||||
|
#define CAN_SET_CAPTURE_BUFFER_SIZE 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `pcap_freecode' function. */
|
||||||
|
/* #undef HAVE_PCAP_FREECODE */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `pcap_free_datalinks' function. */
|
||||||
|
/* #undef HAVE_PCAP_FREE_DATALINKS */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `pcap_open' function. */
|
||||||
|
/* #undef HAVE_PCAP_OPEN */
|
||||||
|
|
||||||
|
/* Define to 1 if you have libpcap/WinPcap/Npcap remote capturing support. */
|
||||||
|
/* #undef HAVE_PCAP_REMOTE */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `pcap_setsampling' function. */
|
||||||
|
/* #undef HAVE_PCAP_SETSAMPLING */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `pcap_set_tstamp_precision' function. */
|
||||||
|
/* #undef HAVE_PCAP_SET_TSTAMP_PRECISION */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `pcap_set_tstamp_type' function. */
|
||||||
|
/* #undef HAVE_PCAP_SET_TSTAMP_TYPE */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <pwd.h> header file. */
|
||||||
|
#define HAVE_PWD_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the optreset variable */
|
||||||
|
/* #undef HAVE_OPTRESET */
|
||||||
|
|
||||||
|
/* Define if sa_len field exists in struct sockaddr */
|
||||||
|
/* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */
|
||||||
|
|
||||||
|
/* Define to 1 if you want to playing SBC by standalone BlueZ SBC library */
|
||||||
|
#define HAVE_SBC 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the SpanDSP library. */
|
||||||
|
#define HAVE_SPANDSP 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the bcg729 library. */
|
||||||
|
/* #undef HAVE_BCG729 */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the ilbc library. */
|
||||||
|
/* #undef HAVE_ILBC */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the speexdsp library. */
|
||||||
|
/* #undef HAVE_SPEEXDSP */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the lixbml2 library. */
|
||||||
|
#define HAVE_LIBXML2 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `setresgid' function. */
|
||||||
|
#define HAVE_SETRESGID 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `setresuid' function. */
|
||||||
|
#define HAVE_SETRESUID 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the Sparkle or WinSparkle library */
|
||||||
|
/* #undef HAVE_SOFTWARE_UPDATE */
|
||||||
|
|
||||||
|
/* Define if you have the 'strptime' function. */
|
||||||
|
#define HAVE_STRPTIME 1
|
||||||
|
|
||||||
|
/* Define to 1 if `st_birthtime' is a member of `struct stat'. */
|
||||||
|
/* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
|
||||||
|
|
||||||
|
/* Define if st_flags field exists in struct stat */
|
||||||
|
/* #undef HAVE_STRUCT_STAT_ST_FLAGS */
|
||||||
|
|
||||||
|
/* Define if st_blksize field exists in struct stat */
|
||||||
|
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
|
||||||
|
|
||||||
|
/* Define to 1 if `__st_birthtime' is a member of `struct stat'. */
|
||||||
|
/* #undef HAVE_STRUCT_STAT___ST_BIRTHTIME */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
||||||
|
#define HAVE_SYS_IOCTL_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/socket.h> header file. */
|
||||||
|
#define HAVE_SYS_SOCKET_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/sockio.h> header file. */
|
||||||
|
/* #undef HAVE_SYS_SOCKIO_H */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||||
|
#define HAVE_SYS_TIME_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/utsname.h> header file. */
|
||||||
|
#define HAVE_SYS_UTSNAME_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/wait.h> header file. */
|
||||||
|
#define HAVE_SYS_WAIT_H 1
|
||||||
|
|
||||||
|
/* Define if tm_zone field exists in struct tm */
|
||||||
|
#define HAVE_STRUCT_TM_TM_ZONE 1
|
||||||
|
|
||||||
|
/* Define if tzname array exists */
|
||||||
|
#define HAVE_TZNAME 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
|
#define HAVE_UNISTD_H 1
|
||||||
|
|
||||||
|
/* Name of package */
|
||||||
|
/* #undef PACKAGE */
|
||||||
|
|
||||||
|
/* Define to the address where bug reports for this package should be sent. */
|
||||||
|
/* #undef PACKAGE_BUGREPORT */
|
||||||
|
|
||||||
|
/* Define to the full name of this package. */
|
||||||
|
/* #undef PACKAGE_NAME */
|
||||||
|
|
||||||
|
/* Define to the full name and version of this package. */
|
||||||
|
/* #undef PACKAGE_STRING */
|
||||||
|
|
||||||
|
/* Define to the one symbol short name of this package. */
|
||||||
|
/* #undef PACKAGE_TARNAME */
|
||||||
|
|
||||||
|
/* Define to the version of this package. */
|
||||||
|
/* #undef PACKAGE_VERSION */
|
||||||
|
|
||||||
|
/* Define if we have QtMultimedia */
|
||||||
|
#define QT_MULTIMEDIA_LIB 1
|
||||||
|
|
||||||
|
/* Define if we have QtMacExtras */
|
||||||
|
/* #undef QT_MACEXTRAS_LIB */
|
||||||
|
|
||||||
|
/* Build androiddump with libpcap instead of wireshark stuff */
|
||||||
|
/* #undef ANDROIDDUMP_USE_LIBPCAP */
|
||||||
|
|
||||||
|
/* Large file support */
|
||||||
|
/* #undef _LARGEFILE_SOURCE */
|
||||||
|
/* #undef _LARGEFILE64_SOURCE */
|
||||||
|
/* #undef _LARGE_FILES */
|
||||||
|
/* #undef _FILE_OFFSET_BITS */
|
||||||
|
|
||||||
|
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
|
||||||
|
`char[]'. */
|
||||||
|
/* Note: not use in the code */
|
||||||
|
/* #undef YYTEXT_POINTER */
|
||||||
|
|
||||||
|
#if defined(_WIN32)
|
||||||
|
/*
|
||||||
|
* Make sure everyone is using the same API and that it's sufficient
|
||||||
|
* for our needs.
|
||||||
|
* This should match the following:
|
||||||
|
* - The <compatibility><application> section in image\wireshark.exe.manifest.in
|
||||||
|
* - The GetWindowsVersion parts of packaging\nsis\wireshark.nsi
|
||||||
|
* - The VersionNT parts of packaging\wix\Prerequisites.wxi
|
||||||
|
*/
|
||||||
|
# if defined(NTDDI_VERSION)
|
||||||
|
# error NTDDI_VERSION already defined.
|
||||||
|
# endif
|
||||||
|
# define NTDDI_VERSION NTDDI_WIN7
|
||||||
|
# if defined(_WIN32_WINNT)
|
||||||
|
# error _WIN32_WINNT already defined.
|
||||||
|
# endif
|
||||||
|
# define _WIN32_WINNT _WIN32_WINNT_WIN7
|
||||||
|
|
||||||
|
/* WpdPack/INclude/pcap/pcap.h checks for "#if defined(WIN32)" */
|
||||||
|
# ifndef WIN32
|
||||||
|
# define WIN32 1
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
|
||||||
|
typedef int ssize_t;
|
||||||
|
# endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
|
||||||
|
*/
|
||||||
|
# define YY_NO_UNISTD_H
|
||||||
|
|
||||||
|
# define strncasecmp strnicmp
|
||||||
|
# define popen _popen
|
||||||
|
# define pclose _pclose
|
||||||
|
|
||||||
|
# ifndef __STDC__
|
||||||
|
# define __STDC__ 0
|
||||||
|
# endif
|
||||||
|
/* Use Unicode in Windows runtime functions. */
|
||||||
|
# define UNICODE 1
|
||||||
|
# define _UNICODE 1
|
||||||
|
|
||||||
|
# define NEED_STRPTIME_H 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <ws_diag_control.h>
|
||||||
|
|
||||||
|
#endif /* __CONFIG_H__ */
|
BIN
dissectors/h4bcm.so
Executable file
BIN
dissectors/h4bcm.so
Executable file
Binary file not shown.
4987
dissectors/packet-btbrlmp.c
Normal file
4987
dissectors/packet-btbrlmp.c
Normal file
File diff suppressed because it is too large
Load diff
1570
dissectors/packet-h4bcm.c
Normal file
1570
dissectors/packet-h4bcm.c
Normal file
File diff suppressed because it is too large
Load diff
40
dissectors/plugin.c
Normal file
40
dissectors/plugin.c
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
/*
|
||||||
|
* Do not modify this file. Changes will be overwritten.
|
||||||
|
*
|
||||||
|
* Generated automatically from /home/matheus/5g/wdissector/libs/wireshark/tools/make-plugin-reg.py.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <gmodule.h>
|
||||||
|
|
||||||
|
/* plugins are DLLs */
|
||||||
|
#define WS_BUILD_DLL
|
||||||
|
#include "ws_symbol_export.h"
|
||||||
|
|
||||||
|
#include "epan/proto.h"
|
||||||
|
|
||||||
|
WS_DLL_PUBLIC void proto_register_btbrlmp(void);
|
||||||
|
WS_DLL_PUBLIC void proto_register_h4bcm(void);
|
||||||
|
WS_DLL_PUBLIC void proto_reg_handoff_btbrlmp(void);
|
||||||
|
WS_DLL_PUBLIC void proto_reg_handoff_h4bcm(void);
|
||||||
|
|
||||||
|
WS_DLL_PUBLIC const gchar plugin_version[] = PLUGIN_VERSION;
|
||||||
|
WS_DLL_PUBLIC const int plugin_want_major = VERSION_MAJOR;
|
||||||
|
WS_DLL_PUBLIC const int plugin_want_minor = VERSION_MINOR;
|
||||||
|
|
||||||
|
WS_DLL_PUBLIC void plugin_register(void);
|
||||||
|
|
||||||
|
void plugin_register(void)
|
||||||
|
{
|
||||||
|
static proto_plugin plug_btbrlmp;
|
||||||
|
|
||||||
|
plug_btbrlmp.register_protoinfo = proto_register_btbrlmp;
|
||||||
|
plug_btbrlmp.register_handoff = proto_reg_handoff_btbrlmp;
|
||||||
|
proto_register_plugin(&plug_btbrlmp);
|
||||||
|
static proto_plugin plug_h4bcm;
|
||||||
|
|
||||||
|
plug_h4bcm.register_protoinfo = proto_register_h4bcm;
|
||||||
|
plug_h4bcm.register_handoff = proto_reg_handoff_h4bcm;
|
||||||
|
proto_register_plugin(&plug_h4bcm);
|
||||||
|
}
|
Loading…
Reference in a new issue