Skip to content

Commit

Permalink
samples/bpf: correct comment in sock_example.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wang Sheng-Hui authored and Daniel Borkmann committed Apr 18, 2018
1 parent 0934dfa commit 97c3361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/bpf/sock_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 97c3361

Please sign in to comment.