Skip to content

Commit 97c3361

Browse files
shhuiwborkmann
authored andcommitted
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>
1 parent 0934dfa commit 97c3361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/bpf/sock_example.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* if (value)
1010
* (*(u64*)value) += 1;
1111
*
12-
* - attaches this program to eth0 raw socket
12+
* - attaches this program to loopback interface "lo" raw socket
1313
*
1414
* - every second user space reads map[tcp], map[udp], map[icmp] to see
15-
* how many packets of given protocol were seen on eth0
15+
* how many packets of given protocol were seen on "lo"
1616
*/
1717
#include <stdio.h>
1818
#include <unistd.h>

0 commit comments

Comments
 (0)