[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1486347448-15393-1-git-send-email-chenbofeng.kernel@gmail.com>
Date: Sun, 5 Feb 2017 18:17:26 -0800
From: Chenbo Feng <chenbofeng.kernel@...il.com>
To: netdev@...r.kernel.org, Alexei Starovoitov <ast@...com>,
Daniel Borkmann <daniel@...earbox.net>
Cc: Lorenzo Colitti <lorenzo@...gle.com>,
Willem de Bruijn <willemb@...gle.com>,
Chenbo Feng <fengc@...gle.com>
Subject: [PATCH net-next v2 0/2] Two Helper function about socket information
From: Chenbo Feng <fengc@...gle.com>
Introduce two eBpf helper function to get the socket cookie and
socket uid for each packet. The helper function is useful when
the *sk field inside sk_buff is not empty.
Chenbo Feng (2):
Add a helper function to get socket cookie in eBPF
Add a eBPF helper function to retrieve socket uid
include/linux/sock_diag.h | 1 +
include/uapi/linux/bpf.h | 16 +++++++++++++++-
net/core/filter.c | 32 ++++++++++++++++++++++++++++++++
net/core/sock_diag.c | 2 +-
4 files changed, 49 insertions(+), 2 deletions(-)
--
2.7.4
Powered by blists - more mailing lists