Skip to content

Commit

Permalink
Version 0.0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-wolf-n4mtt committed May 21, 2019
1 parent c347390 commit 0c7e1fd
Show file tree
Hide file tree
Showing 11 changed files with 103 additions and 93 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
09-MAY-2017 Matthew J. Wolf Email: matthew.wolf.hpsdr at speciosus.net
20-MAY-2017 Matthew J. Wolf Email: matthew.wolf.hpsdr at speciosus.net

The openHPSDR Plug-in for Wireshark is written to disassemble the openHPSDR
Ethernet protocol. The protocol is also is referred to as "Protocol 2".
Expand All @@ -8,6 +8,10 @@ The protocol is still under development.
The current public released protocol documentation list located at:
https://github.com/TAPR/OpenHPSDR-Firmware/tree/master/Protocol%202/Documentation

Version 0.0.7.1
- Due to issue with the Microsoft Windows build. The "-"
in the source file system names has been replaced with "_".

Version 0.0.7:
- Wireshark version 3.0.1
- Changed source file names from openhpsdr to openhpsdr-e.
Expand Down
34 changes: 0 additions & 34 deletions source/openhpsdr-e/CMakeLists.txt

This file was deleted.

File renamed without changes.
70 changes: 70 additions & 0 deletions source/openhpsdr_e/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# CMakeLists.txt
#
# This file is part of the OpenHPSDR-Ethernet (Protocol 2)
# Plug-in for Wireshark.
# By Matthew J. Wolf <matthew.wolf.hpsdr@speciosus.net>
# Copyright 2019 Matthew J. Wolf
#
# Wireshark - Network traffic analyzer
# By Gerald Combs <gerald@wireshark.org>
# Copyright 1998 Gerald Combs
#
# SPDX-License-Identifier: GPL-2.0-or-later
#

include(WiresharkPlugin)

# Plugin name and version info (major minor micro extra)
set_module_info(openhpsdr_e 0 0 7 1)

set(DISSECTOR_SRC
packet_openhpsdr_e.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(openhpsdr_e epan)

target_link_libraries(openhpsdr_e epan)

install_plugin(openhpsdr_e epan)

file(GLOB DISSECTOR_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.h")
CHECKAPI(
NAME
openhpsdr_e
SWITCHES
-g abort -g termoutput -build
SOURCES
${DISSECTOR_SRC}
${DISSECTOR_HEADERS}
)

#
# Editor modelines - http://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:
#
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
09-May-2019 Matthew J. Wolf <matthew.wolf.hpsdr@speciosus.net>
20-May-2019 Matthew J. Wolf <matthew.wolf.hpsdr@speciosus.net>

Version 0.0.7.1:
- Due to issue with the Microsoft Windows build. The "-"
in the source file system names has been replaced with "_".

Version 0.0.7:
- Wireshark version 3.0.1
Expand Down
54 changes: 8 additions & 46 deletions source/openhpsdr-e/INSTALL → source/openhpsdr_e/INSTALL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
10-MAY-2019 Matthew J. Wolf <matthew.wolf.hpsdr@speciosus.net>
20-MAY-2019 Matthew J. Wolf <matthew.wolf.hpsdr@speciosus.net>

1. Remove old Plug-in Library File
----------------------------------
Expand Down Expand Up @@ -31,52 +31,14 @@ the new plug-in.
1. Compile the Plug-in
----------------------

Version 0.3.0 was developed with Wireshark 3.0.1.
Version 0.3.0.1 was developed with Wireshark 3.0.1.

I assuming that that build environment for Wireshark has all ready been
created.

There are two ways to compile the plug-in. Outside or inside the
Wireshark source tree.
I have only been able to compile the plug-in in the Wireshark Source Tree.


A. Build the Plug-in Out Side of the Wireshark Source Tree
----------------------------------------------------------

!!! THIS DOES NOT WORK !!!
- There is an issue with the plug-in source file name that causes the
plug-in version not to be set in the library file.

You will need to have the Wireshark development libraries installed.

1. Unpack the plug-in source file somewhere.

2. Enter the plug-in source directory.

cd openhpsdr-e

3. Create the build directory.

cd <Wireshark Source Root>
mkdir build

4. Enter the Build directory and run cmake.

cd build
cmake ..

6. Run make to build the plug-in.

cd <Plug-in Source Root>/build
make <Your Favorite Options>

7. Install the plug-in.

sudo make install

I used the <Wireshark 3.0.1>/doc/plugins.example/README as reference.

B. Build the Plug-in in the Wireshark Source Tree
Build the Plug-in in the Wireshark Source Tree
----------------------------------------------

You need the Wireshark sources to compile the plug-in in the
Expand All @@ -86,9 +48,9 @@ Wireshark source tree.

1. Unpack the plug-in source file somewhere.

2. Copy and or move the "openhpsdr-e" directory from the plug-in source
2. Copy and or move the "openhpsdr_e" directory from the plug-in source
into the Wireshark source tree.
A. Copy or move the "openhpsdr-e" into
A. Copy or move the "openhpsdr_e" into
<Wireshark Source Root>/plugins/epan

3. Add the plug-in to root CMakeLists.txt file.
Expand All @@ -102,11 +64,11 @@ Wireshark source tree.
plugins/wimax
plugins/wimaxasncp
plugins/wimaxmacphy
plugins/openhpsdr-e
plugins/openhpsdr_e
${CUSTOM_PLUGIN_SRC_DIR}
)

Add "plugins/openhpsdr-e" to the end of the list. An example is above.
Add "plugins/openhpsdr_e" to the end of the list. An example is above.

4.Create the build directory.

Expand Down
6 changes: 5 additions & 1 deletion source/openhpsdr-e/README → source/openhpsdr_e/README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
09-MAY-2017 Matthew J. Wolf Email: matthew.wolf.hpsdr at speciosus.net
20-MAY-2017 Matthew J. Wolf Email: matthew.wolf.hpsdr at speciosus.net

The openHPSDR Plug-in for Wireshark is written to disassemble the openHPSDR
Ethernet protocol. The protocol is also is referred to as "Protocol 2".
Expand All @@ -8,6 +8,10 @@ The protocol is still under development.
The current public released protocol documentation list located at:
https://github.com/TAPR/OpenHPSDR-Firmware/tree/master/Protocol%202/Documentation

Version 0.0.7.1
- Due to issue with the Microsoft Windows build. The "-"
in the source file system names has been replaced with "_".

Version 0.0.7:
- Wireshark version 3.0.1
- Changed source file names from openhpsdr to openhpsdr-e.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* packet-openhpsdr-e.c
/* packet_openhpsdr_e.c
* Routines for the OpenHPSDR Ethernet protocol packet disassembly
*
* Version: 0.0.7
* Version: 0.0.7.1
* Author: Matthew J Wolf, N4MTT
* Date: 03-MAY-2019
* Date: 20-MAY-2019
*
* This file is part of the OpenHPSDR-Ethernet (Protocol 2) Plug-in
* for Wireshark.
Expand All @@ -29,8 +29,8 @@
* If not, see <http://www.gnu.org/licenses/>.
*
*
* The OpenHPSDR Ethernet Plug-in for Wireshark is written to disassemble the protocol
* that is defined in the documents listed below.
* The OpenHPSDR Ethernet Plug-in for Wireshark is written to disassemble the
* protocol that is defined in the documents listed below.
*
* The protocol is still under development.
*
Expand Down Expand Up @@ -61,10 +61,10 @@
#include <stdlib.h>
//#include <string.h>
//#include <math.h>
#include "packet-openhpsdr-e.h"
#include "packet_openhpsdr_e.h"


//Port definitions in packet-openhpsdr.h header
//Port definitions in packet_openhpsd_er.h header


//nameing: "From-Host From-Hardware"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* packet-openhpsdr-e.h
/* packet_openhpsdr_e.h
* Header file for the OpenHPSDR Ethernet protocol packet disassembly
*
* Version: 0.0.7
* Version: 0.0.7.1
* Author: Matthew J Wolf, N4MTT
* Date: 03-MAY-2019
* Date: 20-MAY-2019
*
* This file is part of the OpenHPSDR Plug-in for Wireshark.
* By Matthew J. Wolf <matthew.wolf.hpsdr@speciosus.net>
Expand Down
File renamed without changes.

0 comments on commit 0c7e1fd

Please sign in to comment.