From 10d6705cb0a38bd7acadd5f2cb159dab903bdfb0 Mon Sep 17 00:00:00 2001 From: Konstantin Belyalov Date: Wed, 3 Jul 2019 10:27:18 -0700 Subject: [PATCH] [readme] Fix quick start example --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 71f592b..4d8a8f8 100644 --- a/README.md +++ b/README.md @@ -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")