samples/bpf: correct comment in sock_example.c
authorWang Sheng-Hui <shhuiw@foxmail.com>
Tue, 17 Apr 2018 02:25:20 +0000 (10:25 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 18 Apr 2018 12:45:26 +0000 (14:45 +0200)
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>
samples/bpf/sock_example.c

index 6fc6e193ef1b12ecbb13f5c7729552306632708b..33a637507c00ffb860177596b6e2b1d8f7a23bc0 100644 (file)
@@ -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>