Thread (14 messages) flat view 14 messages, 5 authors, 2017-02-06

Re: [PATCH net-next 0/2] net: core: Two Helper function about socket information

From: Lorenzo Colitti <hidden>
Date: 2017-02-03 16:19:50

On Fri, Feb 3, 2017 at 9:13 AM, Alexei Starovoitov
[off-list ref] wrote:
I think sk_uid is self explanatory, but cookie is less so.
Please explain how you plan to use it.
The cookie is the only way to uniquely identify a given socket on the
system (the 5-tuple is not sufficient in the presence of SO_REUSEPORT,
for example). One goal for this infrastructure is to perform
per-socket accounting (ultimately replace the out-of-tree xt_qtaguid
code that is used for per-UID, per-socket-tag accounting on Android).
The socket cookie would be a natural key to use in a BPF map where the
values are socket accounting information.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help