goRawSocket

module
v0.0.0-...-11e162c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2022 License: Apache-2.0

README

goRawSocket

Refactoring of zsocket (github.com/newtools/zsocket) that supports the TPACKET_V2 interface to allow for VLAN support. In addition, a Berkley Packet Filter can be supplied to filter frames on the socket. Receive is performed on an Rx channel created by the caller.

See examples for how to use this implementation

The original zsockets (github.com/newtools/zsocket) is MIT License

Development make targets

The Makefile contains many commands that are useful in development:

clean                     : Removes any local filesystem artifacts generated by a build
distclean                 : Removes any local filesystem artifacts generated by a build or test run
help                      : Print help for each Makefile target
lint-mod                  : Verify the Go dependencies
lint                      : Run all lint targets
mod-update                : Update go mod files
sca                       : Runs static code analysis with the golangci-lint tool
test                      : Run unit tests

Directories

Path Synopsis
examples
rx-listener command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL