diff options
author | Wang Sheng-Hui <shhuiw@foxmail.com> | 2018-04-17 10:25:20 +0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-04-18 14:45:26 +0200 |
commit | 97c33610acc596f318f3ec8d644ca70aeac30a7f (patch) | |
tree | 17ed267d2d3bccf2c7da9d6f76cf9879ef8064bc /samples/bpf | |
parent | 0934dfa6d345783bdeead0aba49ced24944eb29a (diff) |
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 <shhuiw@foxmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/bpf')
-rw-r--r-- | samples/bpf/sock_example.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/bpf/sock_example.c b/samples/bpf/sock_example.c index 6fc6e193ef1b..33a637507c00 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 <stdio.h> #include <unistd.h> |