From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wang Sheng-Hui Subject: [PATCH] samples/bpf: correct comment in sock_example.c Date: Tue, 17 Apr 2018 10:25:20 +0800 Message-ID: <20180417022520.2412-1-shhuiw@foxmail.com> To: ast@kernel.org, daniel@iogearbox.net, netdev@vger.kernel.org Return-path: Received: from smtpbgbr2.qq.com ([54.207.22.56]:34665 "EHLO smtpbgbr2.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751206AbeDQCZl (ORCPT ); Mon, 16 Apr 2018 22:25:41 -0400 Sender: netdev-owner@vger.kernel.org List-ID: The program run against loopback interace "lo", not "eth0". Correct the comment. Signed-off-by: Wang Sheng-Hui --- samples/bpf/sock_example.c | 4 ++-- 1 file 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 #include -- 2.11.0