Git Product home page Git Product logo

randolphcyg / gowireshark Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 3.0 83.7 MB

Provide the same packet processing capabilities as wireshark for Go.[wireshark4.2.5 supported] Due to delays in github LFS upgrade, the latest dll is pushed to google

Home Page: https://drive.google.com/drive/folders/1V-h60podfRDsgPmHUC1C8YM1LB6bQHH1?usp=drive_link

License: MIT License

Go 0.01% C 99.39% CMake 0.16% Shell 0.01% Makefile 0.02% Python 0.01% C++ 0.01% Lex 0.07% SourcePawn 0.18% PostScript 0.01% HTML 0.02% M4 0.04% Assembly 0.01% Roff 0.08%
cgo epan golang-library wireshark

gowireshark's People

Contributors

randolphcyg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gowireshark's Issues

issue in testing huge file print all frames

/gowireshark/tests/gowireshark_test.go:33 +0x25
testing.tRunner(0xc000110ea0, 0x57d100)
/usr/lib/go-1.18/src/testing/testing.go:1439 +0x102
created by testing.(*T).Run
/usr/lib/go-1.18/src/testing/testing.go:1486 +0x35f
exit status 2
FAIL github.com/randolphcyg/gowireshark/tests 600.690s

unable to build the code on mac m1

unable to build the code on mac m1- are there nay dependencies?

github.com/randolphcyg/gowireshark

In file included from frame_tvbuff.c:15:
In file included from ./include/wireshark/epan/packet.h:16:
In file included from ./include/wireshark/epan/proto.h:34:
In file included from ./include/wireshark/epan/tvbuff.h:30:
In file included from ./include/wireshark/wsutil/ws_mempbrk.h:16:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/emmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
In file included from frame_tvbuff.c:15:
In file included from ./include/wireshark/epan/packet.h:16:
In file included from ./include/wireshark/epan/proto.h:34:
In file included from ./include/wireshark/epan/tvbuff.h:30:
In file included from ./include/wireshark/wsutil/ws_mempbrk.h:16:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/emmintrin.h:17:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
In file

Install fails

$ go install "github.com/randolphcyg/gowireshark@latest"
go: downloading github.com/randolphcyg/gowireshark v1.10.6
go: github.com/randolphcyg/gowireshark@latest: create zip: module source tree too large (max size is 524288000 bytes)

Running on Fedora 37, fully patched, with functional go 1.19.8 and many other golang libraries/apps installed.

建议优化文档,展示解析结果 :)

可否在文档(如README)中展示解析后的数据结构,或解析后的JSon object?这样更加清晰直观。
最近也想看能不能把Wireshark用go封装起来,看到您这个库,感觉很有希望哈。

Failed to clone Git repository/go install because of LFS data quota

Forking this repository didn't solve the issue, which I believe is a bug of GitHub because forking some repo should use my Git LFS limits, not from the original repo.

I wrote this issue to inform you that some people may encounter issues with cloning your repo, and forking your repos will not solve their problems.

Also, go build github.com/randolphcyg/gowireshark affected this issue.

$ git clone https://github.com/randolphcyg/gowireshark.git
Cloning into 'gowireshark'...
remote: Enumerating objects: 14005, done.
remote: Counting objects: 100% (1989/1989), done.
remote: Compressing objects: 100% (1127/1127), done.
Receiving objects: 100% (14005/14005), 79.15 MiB | 15.41 MiB/s, done. 12016

Resolving deltas: 100% (5941/5941), done.
Updating files: 100% (6808/6808), done.
Downloading libs/libpcap.so.1 (1.2 MB)
Error downloading object: libs/libpcap.so.1 (c70bf5a): Smudge error: Error downloading libs/libpcap.so.1 (c70bf5a9379985c368e257b30359b886506f4c442052bf1cd4436660279eea8c): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

Errors logged to 'D:\Projects\GolandProjects\github\gowireshark\.git\lfs\logs\20230911T002107.9409077.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: libs/libpcap.so.1: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

packet data output in JSON format with descriptive values

/gowireshark/tests/gowireshark_test.go:33 +0x25
testing.tRunner(0xc000110ea0, 0x57d100)
/usr/lib/go-1.18/src/testing/testing.go:1439 +0x102
created by testing.(*T).Run
/usr/lib/go-1.18/src/testing/testing.go:1486 +0x35f
exit status 2
FAIL github.com/randolphcyg/gowireshark/tests 600.690s

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.