google/gopacket
View on GitHub ↗ ★ 6,799 Go
Provides packet processing capabilities for Go
5 mentions on Hacker News by 5 people: 0 stories, 5 comments · first 2015-08-17 · latest 2026-01-23
20082026
-
I think this package does exactly what you need: https://pkg.go.dev/github.com/google/gopacket/routing . Works on my machine (error handling left to the reader) router, _ := routing.New() iface, _, _, _ :=…
comment by fellerts · 2026-01-23 · in Show HN: Whosthere: A LAN discovery tool with a modern TUI, written in Go -
…this in plain code. "github.com/chifflier/nfqueue-go/nfqueue" "github.com/sergi/go-diff/diffmatchpatch" "github.com/google/gopacket" "github.com/google/gopacket/layers"
comment by daghamm · 2024-03-26 · in Packet-editing games in Golang (2021) -
…Edit: Also, before I forget, this implementation uses recursion even though it's not necessary. https://github.com/google/gopacket/blob/3eaba08943250fd21252... Between your code, the one linked to above, and djbdns I was totally confused…
comment by acuozzo · 2022-04-11 · in What I learned from making a DNS client in Rust -
Neat! In case anyone wants to use this on router7, where CGO_ENABLED=0, you’d need something like https://github.com/google/gopacket/pull/470
comment by secure · 2018-07-14 · in Show HN: Router7 – A pure-Go implementation of a small home internet router -
…—me included. Thanks! A minor issue, on your second snippet (open devices for live capture), you miss the "github.com/google/gopacket" import.
comment by andmarios · 2015-08-17 · in Packet Capture, Injection, and Analysis with Gopacket