https://github.com/njcx/gopacket_dpdk
Gopacket with DPDK
https://github.com/njcx/gopacket_dpdk
dpdk gopacket network-analysis pcap
Last synced: 6 months ago
JSON representation
Gopacket with DPDK
- Host: GitHub
- URL: https://github.com/njcx/gopacket_dpdk
- Owner: njcx
- License: other
- Created: 2025-02-10T09:18:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-24T04:51:32.000Z (over 1 year ago)
- Last Synced: 2025-02-24T05:31:06.030Z (over 1 year ago)
- Topics: dpdk, gopacket, network-analysis, pcap
- Language: Go
- Homepage:
- Size: 718 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkd
- Changelog: CHANGELOG
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
# gopacket_dpdk
This library provides packet decoding capabilities for Go.
See doc.go for more details.
Originally forked from the gopcap project written by Andreas
Krennmair (http://github.com/akrennmair/gopcap).
```bash
dpdk >= DPDK 20.02.1
kernel >= 3.10.0
CentOS
# yum install -y libpcap-devel gcc gcc-c++ make meson ninja numactl-devel numactl net-tools pciutils
# yum install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r)
Debian + Ubuntu
# apt install -y libpcap-dev gcc g++ make meson ninja-build libnuma-dev numactl net-tools pciutils
# apt install -y linux-headers-$(uname -r)
# wget http://fast.dpdk.org/rel/dpdk-20.11.10.tar.xz
# tar -Jxvf dpdk-20.11.10.tar.xz
# cd dpdk-stable-20.11.10 && meson build && cd build && ninja && ninja install
# export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH
# git clone git://dpdk.org/dpdk-kmods && cd dpdk-kmods/linux/igb_uio
# make
# modprobe uio && insmod igb_uio.ko
# dpdk-devbind.py -b igb_uio 0000:03:00.0(pci-addr)
# CGO_CFLAGS="-msse4.2 -fno-strict-aliasing " CGO_LDFLAGS=" -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ethdev -lpcap" go build
```