Commit 97c33610 authored by Wang Sheng-Hui's avatar Wang Sheng-Hui Committed by Daniel Borkmann

samples/bpf: correct comment in sock_example.c

The program run against loopback interace "lo", not "eth0".
Correct the comment.
Signed-off-by: default avatarWang Sheng-Hui <shhuiw@foxmail.com>
Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 0934dfa6
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
* if (value) * if (value)
* (*(u64*)value) += 1; * (*(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 * - 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 <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment