examples/

directory
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2020 License: BSD-3-Clause

Directories

Path Synopsis
dumpframes demostrates how to receive frames from a network link using github.com/asavie/xdp package, it sets up an XDP socket attached to a particular network link and dumps all frames it receives to standard output.
dumpframes demostrates how to receive frames from a network link using github.com/asavie/xdp package, it sets up an XDP socket attached to a particular network link and dumps all frames it receives to standard output.
l2fwd is a primitive layer 2 frame forwarder, it attaches to two given network links and transmits any frames received on any of them on the other network link with the given destination MAC address.
l2fwd is a primitive layer 2 frame forwarder, it attaches to two given network links and transmits any frames received on any of them on the other network link with the given destination MAC address.
rebroadcast demonstrates how to receive and transmit network frames using the github.com/asavie/xdp package, it receives frames on the given network interface using an XDP socket, prints the received frames to stdout, modifies their the destination MAC address to the broadcast address of ff:ff:ff:ff:ff:ff in-line and sends the frames back out the same network interface.
rebroadcast demonstrates how to receive and transmit network frames using the github.com/asavie/xdp package, it receives frames on the given network interface using an XDP socket, prints the received frames to stdout, modifies their the destination MAC address to the broadcast address of ff:ff:ff:ff:ff:ff in-line and sends the frames back out the same network interface.
senddnsqueries pre-generates a frame with a DNS query and starts sending it in and endless loop to given destination as fast as possible.
senddnsqueries pre-generates a frame with a DNS query and starts sending it in and endless loop to given destination as fast as possible.
sendudp pre-generates a frame with a UDP packet with a payload of the given size and starts sending it in and endless loop to given destination as fast as possible.
sendudp pre-generates a frame with a UDP packet with a payload of the given size and starts sending it in and endless loop to given destination as fast as possible.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL