Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 3.2% on proxy.golang.org
Top 2.8% dependent packages on proxy.golang.org
Top 2.5% dependent repos on proxy.golang.org
Top 3.8% forks on proxy.golang.org

proxy.golang.org : github.com/asavie/xdp

Package xdp allows to use XDP sockets from Go. An XDP socket allows to get packets from a network interface driver into a userspace process very fast, bypassing the Linux kernel's network stack, see https://lwn.net/Articles/750845/ for more information. NOTE: * If your network link device supports multiple queues - you might not see all of the incoming traffic because it might be e.g. load-balanced between multiple queues. You can use the `ethtool -L` command to control the load-balancing behaviour or even make it so that all of the incoming traffic is put on a single queue. * On recent versions of Linux kernel, the eBPF map memory counts towards the "locked memory" user limit, so most likely you'll have to increase it. On Fedora Linux, this can be done by running `ulimit -l <new-limit>` command, or to make it permanent, by creating a file at `/etc/security/limits.d/50-lockedmem.conf` with e.g. the following contents (1MiB should be enough for this package): logging out and logging back in. When you hit this limit, you'll get an error that looks like this: Here is a minimal example of a program which receives network frames, modifies their destination MAC address in-place to broadcast address and transmits them back out the same network link:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/asavie/xdp
Keywords: dataplane, go, golang, golang-package, linux, network, network-programming, networking, packet-capture, packet-generator, packet-processing, packet-sniffer, packets, sdn, sdn-network, sdn-switch, software-defined-network, software-defined-networking, xdp, xdp-sockets
License: BSD-3-Clause
Latest release: about 3 years ago
First release: over 3 years ago
Namespace: github.com/asavie
Dependent packages: 5
Dependent repositories: 4
Stars: 162 on GitHub
Forks: 39 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 24 days ago

Top 6.3% on proxy.golang.org
github.com/hujun-open/zouppp v0.3.1
zouppp is a set of GO modules implements PPPoE and related protocols: zouppp/pppoe: PPPoE RFC251...
8 versions - Latest release: 10 months ago - 23 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/hujun-open/dhcplt v0.5.1
dhcplt ndproxy
9 versions - Latest release: 10 months ago - 0 stars on GitHub
Top 8.8% on proxy.golang.org
github.com/hujun-open/etherconn v0.6.1
Package etherconn is a golang pkg that allow user to send/receive Ethernet payload (like IP pkt) ...
15 versions - Latest release: 12 months ago - 2 dependent packages - 3 dependent repositories - 12 stars on GitHub
github.com/cody0704/xdp-examples v0.0.0-20230418055624-d4e770f34fa5
1 version - Latest release: about 1 year ago - 5 stars on GitHub
Top 9.7% on proxy.golang.org
github.com/sudoamin2/sparrow v0.0.0-20220702114904-5970533c770d
Sparrow is a L4 protocol based on AF_XDP
1 version - Latest release: almost 2 years ago - 5 stars on GitHub