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

- From: Alexei Starovoitov \<hidden\>
- Date: 2017-02-03 00:13:35 
- List: netdev
- Page: https://ratatoskr.run/netdev/2017/02/11043398
- Thread: https://ratatoskr.run/netdev/2017/02/11043370/t.md

```text
On Thu, Feb 02, 2017 at 12:59:48PM -0800, Chenbo Feng wrote:
> 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.

Looks nice.
I'd like to see a sample code/test for it though.
I think sk_uid is self explanatory, but cookie is less so.
Please explain how you plan to use it.

Thanks
```
