Giter Club home page Giter Club logo

s7commwireshark's Introduction

s7commwireshark

S7comm Wireshark dissector plugin

This project is a clone from ​http://sourceforge.net/projects/s7commwireshark/.

It was initially cloned by the following command:

git svn clone -s --add-author-from --use-log-author ​svn://svn.code.sf.net/p/s7commwireshark/code s7commwireshark-code 

Updates are fetched by:

git svn fetch --add-author-from --use-log-author 
git svn rebase --add-author-from --use-log-author

The s7comm_plus dissector is intended to be used as a sub-project of Wireshark, e.g.:

git clone https://github.com/JuergenKosel/wireshark.git wireshark
cd wireshark
git checkout s7commwireshark
git submodule update --init

Then follow the build instructions of the Wireshark project.

Update from upstream subversion

It is not obvious in https://git-scm.com/docs/git-svn , but it is possible to run 'git svn init' inside an already exisiting git repository. So you could turn your clone of this git repository into a git-svn repository and fetch updates from the upstream svn repository. Therefore run the following commands:

git config --add svn.addAuthorFrom true
git config --add svn.useLogAuthor true
git config --add svn.pushmergeinfo true
git svn init -s ​svn://svn.code.sf.net/p/s7commwireshark/code --prefix=upstream-svn/

Create a local branch named trunk from the origin/trunk branch if you have not done so far and check it out:

git branch trunk origin/trunk
git checkout trunk

Update your trunk branch to the subversion trunk:

git svn fetch
git svn rebase

s7commwireshark's People

Contributors

juergenkosel avatar thomas-v2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

s7commwireshark's Issues

error occurs when i put .dll file in plugins

it occurs an error when i open wireshark after putting dll file in plugins/3.2/epan/, error info like this:
image

version of wireshark is 3.2.7, and my paltform is win10, i need to do some works with s7comm-plus recentlly, it would be appreciate if this plugins can be used

Build broken

Build broken by commit 43c6770
gcc gives the following output:

wireshark/epan/dissectors/s7commwireshark/src/s7comm_plus/packet-s7comm_plus.c: In function 's7commp_decode_value':
/home/juergen/C++Programme/wireshark/epan/dissectors/s7commwireshark/src/s7comm_plus/packet-s7comm_plus.c:5587:17: error: variable 'value_item' set but not used [-Werror=unused-but-set-variable]
     proto_item *value_item = NULL;
                 ^~~~~~~~~~
cc1: all warnings being treated as errors

gitlab ci build failed for clang

gitlab pipeline of wireshark failed:

FAILED: /usr/bin/clang-3.5  -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DWS_BUILD_DLL -I. -I../ -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/lua5.2 -isystem /usr/include/libxml2 -isystem /usr/include/libnl3 -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem /usr/include/x86_64-linux-gnu/qt5/QtMultimedia -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu -Iepan/dissectors -I../epan/dissectors -I../epan -fvisibility=hidden  -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 -Wframe-larger-than=16384 -Wc++-compat -Wunused-const-variable -Wshadow -Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes -Wshorten-64-to-32 -Werror=implicit  -Qunused-arguments  -O2 -g -DNDEBUG -fPIC   -std=gnu99 -Werror -MMD -MT epan/dissectors/CMakeFiles/dissectors.dir/s7commwireshark/src/s7comm_plus/packet-s7comm_plus.c.o -MF epan/dissectors/CMakeFiles/dissectors.dir/s7commwireshark/src/s7comm_plus/packet-s7comm_plus.c.o.d -o epan/dissectors/CMakeFiles/dissectors.dir/s7commwireshark/src/s7comm_plus/packet-s7comm_plus.c.o   -c ../epan/dissectors/s7commwireshark/src/s7comm_plus/packet-s7comm_plus.c
../epan/dissectors/s7commwireshark/src/s7comm_plus/packet-s7comm_plus.c:5199:117: error: implicit conversion loses integer precision: 'uLong' (aka 'unsigned long') to 'guint32' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
            pi = proto_tree_add_uint(subtree, hf_s7commp_compressedblob_dictionary_id, tvb, offset + 2, 4, streamp->adler);
                 ~~~~~~~~~~~~~~~~~~~                                                                       ~~~~~~~~~^~~~~
../epan/dissectors/s7commwireshark/src/s7comm_plus/packet-s7comm_plus.c:6941:26: error: explicitly assigning value of variable of type 'guint32' (aka 'unsigned int') to itself [-Werror,-Wself-assign]
            for (lid_cnt = lid_cnt; lid_cnt <= lid_nest_depth; lid_cnt++) {
                 ~~~~~~~ ^ ~~~~~~~
2 errors generated.
ninja: build stopped: subcommand failed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.