https://github.com/saidjawad/xdp-tutorial-go
XDP Tutorial with Go user space programs.
https://github.com/saidjawad/xdp-tutorial-go
ebpf netlink xdp
Last synced: 2 months ago
JSON representation
XDP Tutorial with Go user space programs.
- Host: GitHub
- URL: https://github.com/saidjawad/xdp-tutorial-go
- Owner: saidjawad
- Created: 2024-03-19T12:40:10.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-22T14:26:09.000Z (about 2 years ago)
- Last Synced: 2025-01-21T04:28:11.944Z (over 1 year ago)
- Topics: ebpf, netlink, xdp
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
# SPDX-FileCopyrightText: © 2019 Jesper Dangaard Brouer and XDP-Project contrinbutors
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
#+TITLE: XDP Tutorial in Go
This repository contains my attempt to use Golang for implementing the user
space programs from the [[https://github.com/xdp-project/xdp-tutorial][XDP-tutorial]].
The plan is to follow the original structure and content. Hence, I will
reuse their eBPF programs, and try to replicate the behavior of their user space
programs. As expected, I will have to adapt some of their build instructions.
* Setting up dependencies
If you follow the [[https://github.com/xdp-project/xdp-tutorial/blob/master/setup_dependencies.org][Setup Dependencies]] from their tutorial,
you will ba able to build and run the code in this repository without any problems.
One notable difference is that we don't have any dependencies on *libxdp*.
* Compiling the code
After setting up dependencies, you can run =make= command.