samples/bpf: correct comment in sock_example.c
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- samples/bpf/sock_example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
samples/bpf/sock_example.c +2 -2
@@ -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>
Signature · 1 line
2.11.0
Quoted 4 lines · Wang Sheng-Hui
The program run against loopback interace "lo", not "eth0". Correct the comment.
Signed-off-by Wang Sheng-Hui <[email protected]>
for future patches please use the following format for the subject:
[PATCH bpf-next] samples/bpf: ...
Quoted 4 lines · Wang Sheng-Hui
The program run against loopback interace "lo", not "eth0". Correct the comment.
Signed-off-by Wang Sheng-Hui <[email protected]>
Applied to bpf-next, thanks Wang!