Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1013 Bytes

local_dev.md

File metadata and controls

45 lines (35 loc) · 1013 Bytes

Table of Contents generated with mtoc

Local development

For more information, please visit official documentation.

Requirements

  1. Install rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. Install nightly toolchain:
rustup install stable && rustup toolchain install nightly --component rust-src
  1. Optional, if using mac or other linux:
LLVM_SYS_180_PREFIX=$(brew --prefix llvm) cargo install --no-default-features bpf-linker
  1. MANDATORY:
cargo install bpf-linker

Running nflux

make local-run

Debugging

sudo bpftool prog list # show ebpf running programs
ip link show dev wlo1 # xdp attached to your interface