/
Depends on
- dh-golang (dh-sequence-golang)
- golang-defaults (golang-any)
- golang-github-google-go-cmp (golang-github-google-go-cmp-dev)
- golang-github-mdlayher-packet (golang-github-mdlayher-packet-dev)
- golang-golang-x-net (golang-golang-x-net-dev)
- golang-golang-x-sys (golang-golang-x-sys-dev)
- debhelper-compat
README (full)
raw

Package raw enables reading and writing data at the device driver level for a
network interface. MIT Licensed.
Deprecated: use
github.com/mdlayher/packet on Linux
instead. This package is unmaintained.
For more information about using sockets with Ethernet frames in Go, check out my blog post: Network Protocol Breakdown: Ethernet and Go.
Unmaintained
This repository was one of my first major Go networking libraries. Although I have updated it on Linux to incorporate modern Go best practices (asynchronous I/O, runtime network poller integration), the non-Linux platform code is effectively unmaintained and does not have the same level of functionality.
I encourage all Linux users of this package to migrate to
github.com/mdlayher/packet, which is a
modern AF_PACKET library. The existing *raw.Conn APIs now call directly into
the equivalent *packet.Conn APIs, and a level of indirection can be removed by
migrating to that package.
| dir | .github/ |
| dir | debian/ |
| file | LICENSE.md |
| file | README.md |
| file | go.mod |
| file | go.sum |
| file | raw.go |
| file | raw_bsd.go |
| file | raw_direction_bsd.go |
| file | raw_direction_openbsd.go |
| file | raw_linux.go |
| file | raw_linux_test.go |
| file | raw_others.go |
| file | staticcheck.conf |