Registry / networking / google-gopacket

google-gopacket

JSON →
library1.1.19gogounverified

Package gopacket provides packet decoding for the Go language.

go get github.com/google/gopacket
INSTALL
IMPORT
SIG · GOOGLE-GOPACKET
G
google-gopacket
networkinggov1.1.19
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gopacket
github.com/google/gopacket

Captures and decodes packets from a network interface.

package main import ( "fmt" "github.com/google/gopacket" "github.com/google/gopacket/pcap" ) func main() { handle, err := pcap.OpenLive("eth0", 1600, true, pcap.BlockForever) if err != nil { panic(err) } defer handle.Close() packetSource := gopacket.NewPacketSource(handle, handle.LinkType()) for packet := range packetSource.Packets() { fmt.Println(packet) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.19latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
9
Resources
google-gopacket — go get google-gopacket · libregistry