Skip to content

Commit

Permalink
[readme] Fix quick start example
Browse files Browse the repository at this point in the history
  • Loading branch information
belyalov committed Jul 3, 2019
1 parent 04022ed commit 10d6705
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ Consider very simple example of Read / Load / Attach
bpf := goebpf.NewDefaultEbpfSystem()
// Read clang compiled binary
bpf.LoadElf("test.elf")
// Load XDP program into kernel
// Load XDP program into kernel (name matches function name in C)
xdp := bpf.GetProgramByName("xdp_test")
xdp.Load()
// Attach to interface
xdp.Attach("eth0")
Expand Down

0 comments on commit 10d6705

Please sign in to comment.