Hacker GitHub

← All repos

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

Mentions per year 5 mentions · busiest year 2015 (1)
20082026
  1. 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, _, _, _ :=…
  2. …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)
  3. …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…
  4. 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
  5. …—me included. Thanks! A minor issue, on your second snippet (open devices for live capture), you miss the "github.com/google/gopacket" import.