gopacket
Provides packet processing capabilities for Go (by google)
gopcap
A simple wrapper around libpcap for the Go programming language (by akrennmair)
gopacket | gopcap | |
---|---|---|
7 | 1 | |
6,497 | 491 | |
0.7% | 0.0% | |
2.4 | 0.0 | |
about 1 month ago | almost 4 years ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gopacket
Posts with mentions or reviews of gopacket.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-26.
-
As a Go developer, I’m surprised Crystal isn’t more popular
I have seen pcap but not packetz, thanks. Pcap looks unfinished and packetz has not been updated in a long time, but they might be able to make a working capture program. However the popularity and features available in Go regarding packet capture makes it very hard to beat. E.g. the Google gopacket library has 5.6k stars on github and as pretty much every feature you'd want for this sort of stuff built in.
-
eCapture: capture HTTPS traffic without CA certificates on Android/Linux using Golang.
eCapture implements the feature of saving a pcapng file by eBPF TC, and supports TLS Master Secret Key capturing by eBPF Uprobe. Also, gopacket's DSB feature is supported, based on Decryption Secrets Block (DSB)
-
Is it common to not have a local dev environment in go?
Well, there is https://github.com/google/gopacket/, you have a package that uses CGo, `pcap`, and then there is `pcapgo`, native Go implementation. Doesn't have all the features but in my case, I was able to use it and remove CGo.
-
[Go] Try capturing TCP packets
I will capturing TCP packets by gopacket/pcap.
-
Gain Visibility into Istio mTLS Traffic with Mizu
For example, gopacket uses libpcap by default for capturing the traffic. Libpcap doesn't support network namespaces and we can't ask it to listen to traffic on a different namespace. However, we can change the network namespace of the calling thread and then start libpcap to see the traffic on a different namespace.
- GO network programming resources
-
networking - getting route and interface for a destination
https://pkg.go.dev/github.com/google/gopacket/routing - Linux only and not working correctly and not actively maintained
gopcap
Posts with mentions or reviews of gopcap.
We have used some of these posts to build our list of alternatives
and similar projects.
-
A brief look at Go's new generics
Among the many early review articles of pre-1.0 Go, a common criticism was the lack of generics, or parameterized types. Having used Go for my personal projects since late 2009 and professionally since 2013, I kind of understood the criticism because it was the kind of feature that you would naturally expect in a new language as other modern languages of the time would often feature generics in some shape or form. C++ went to the extreme with it, as its template system goes beyond just type parameterization and was even found to be Turing-complete. Practically though, in the several years of actively using Go pretty much every work day, writing many tens of thousands of line of code, I've only ever come across one situation where I thought that parameterized types would have been really handy and would have made it so much easier to write less repetitive code.
What are some alternatives?
When comparing gopacket and gopcap you can also consider the following projects:
NFF-Go - NFF-Go -Network Function Framework for GO (former YANFF)
buffstreams - A library to simplify writing applications using TCP sockets to stream protobuff messages
mdns - Simple mDNS client/server library in Golang
ethernet - Package ethernet implements marshaling and unmarshaling of IEEE 802.3 Ethernet II frames and IEEE 802.1Q VLAN tags. MIT Licensed.
sslb - Golang Super Simple Load Balance