mdlayher / xdp

Package xdp provides access to Linux userspace XDP sockets (AF_XDP). MIT Licensed.
MIT License
38 stars 7 forks source link

Some usecases #1

Closed sevagh closed 5 years ago

sevagh commented 5 years ago

Hello. I came across this package when looking for a Go library to use AF_XDP.

An example usecase of AF_XDP is available here: https://github.com/xdp-project/xdp-tutorial/tree/master/advanced03-AF_XDP

I have a WIP Go XDP project (using https://github.com/iovisor/gobpf) where I'd want to use AF_XDP to manipulate some packets: send intercepted packets over from an XDP kernel program using XSKMAP, and either duplicate them, or rearrange them, both cases where the XDP kernel code is too restrictive to implement.

I'm not sure how to combine both these elements to help contribute to this library, but I'm definitely interested in AF_XDP and Go.

sevagh commented 5 years ago

Turns out there's too much friction when not using C for XDP - I'm abandoning the Go parts.