From: Wang Sheng-Hui Date: Tue, 17 Apr 2018 02:25:20 +0000 (+0800) Subject: samples/bpf: correct comment in sock_example.c X-Git-Tag: v5.15~8692^2~417^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97c33610acc596f318f3ec8d644ca70aeac30a7f;p=platform%2Fkernel%2Flinux-starfive.git samples/bpf: correct comment in sock_example.c The program run against loopback interace "lo", not "eth0". Correct the comment. Signed-off-by: Wang Sheng-Hui Acked-by: Alexei Starovoitov Signed-off-by: Daniel Borkmann --- diff --git a/samples/bpf/sock_example.c b/samples/bpf/sock_example.c index 6fc6e19..33a6375 100644 --- a/samples/bpf/sock_example.c +++ b/samples/bpf/sock_example.c @@ -9,10 +9,10 @@ * if (value) * (*(u64*)value) += 1; * - * - attaches this program to eth0 raw socket + * - attaches this program to loopback interface "lo" raw socket * * - every second user space reads map[tcp], map[udp], map[icmp] to see - * how many packets of given protocol were seen on eth0 + * how many packets of given protocol were seen on "lo" */ #include #include