Registry / networking / mdlayher-raw

mdlayher-raw

JSON →
librarygogounverified

Package raw enables reading and writing data at the device driver level for a network interface.

go get github.com/mdlayher/raw
INSTALL
IMPORT
SIG · MDLAYHER-RAW
M
mdlayher-raw
networkinggo
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.

raw
github.com/mdlayher/raw

Opens a raw socket on a network interface.

package main import ( "log" "github.com/mdlayher/raw" ) func main() { ifi, err := net.InterfaceByName("eth0") if err != nil { log.Fatal(err) } conn, err := raw.ListenPacket(ifi, 0x0800) if err != nil { log.Fatal(err) } defer conn.Close() log.Println("Listening on", ifi.Name) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mdlayher-raw — go get mdlayher-raw · libregistry