https://github.com/yerden/go-snf
Myricom/CSPI SNFv3 Go bindings
https://github.com/yerden/go-snf
go golang gopacket myricom snf sniffer10g
Last synced: 6 months ago
JSON representation
Myricom/CSPI SNFv3 Go bindings
- Host: GitHub
- URL: https://github.com/yerden/go-snf
- Owner: yerden
- License: mit
- Created: 2019-01-28T17:09:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-15T17:19:00.000Z (over 3 years ago)
- Last Synced: 2024-06-20T08:04:29.588Z (about 2 years ago)
- Topics: go, golang, gopacket, myricom, snf, sniffer10g
- Language: Go
- Homepage:
- Size: 166 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-snf
[](http://godoc.org/github.com/yerden/go-snf/snf) [](https://goreportcard.com/report/github.com/yerden/go-snf) [](https://travis-ci.com/yerden/go-snf)
Go wrappers for SNFv3 library supplied by CSPI for Myricom PCI-E network boards.
### Installation
Non-Go requirements:
* SNFv3, please refer to [CSPI](http://www.cspi.com) website for download and installation instructions.
* `libpcap` library and include headers. Consult your system documentation on how to install them.
* Tested on Linux environment only (Centos 7, Ubuntu Trusty).
### SNF library location
If you have SNF library installed in default location `/opt/snf` then you can simply build as it is.
If you want to test something in case you don't have installed SNF dependency you can specify `snf_mockup` build tag. In this case, all SNF calls will be implemented as stub functions.
Alternatively, you can specify SNF library custom location by supplying it in environment:
```
export CGO_CFLAGS="-I/path/to/snf/include"
export CGO_LDFLAGS="-L/path/to/snf/lib -lsnf"
```
### Caveats
The package is under development so API may experience some changes. Any contributions from Myricom NICs users are welcome.