[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161201165722.GD46200@ast-mbp.thefacebook.com>
Date: Thu, 1 Dec 2016 08:57:23 -0800
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: David Ahern <dsa@...ulusnetworks.com>
Cc: netdev@...r.kernel.org, daniel@...que.org, ast@...com,
daniel@...earbox.net, maheshb@...gle.com, tgraf@...g.ch
Subject: Re: [PATCH v7 net-next 4/6] bpf: Add support for reading socket
family, type, protocol
On Thu, Dec 01, 2016 at 08:48:06AM -0800, David Ahern wrote:
> Add socket family, type and protocol to bpf_sock allowing bpf programs
> read-only access.
>
> Add __sk_flags_offset[0] to struct sock before the bitfield to
> programmtically determine the offset of the unsigned int containing
> protocol and type.
>
> Signed-off-by: David Ahern <dsa@...ulusnetworks.com>
Acked-by: Alexei Starovoitov <ast@...nel.org>
Powered by blists - more mailing lists