Re: [PATCH bpf-next]: add sock_ops R/W access to ipv4 tos

2018-03-28 Thread Daniel Borkmann
On 03/28/2018 07:41 PM, Nikita Shirokov wrote: >>> On 03/26/2018 05:36 PM, Nikita V. Shirokov wrote: >>> bpf: Add sock_ops R/W access to ipv4 tos >>> >>> Sample usage for tos: >>> >>>    bpf_getsockopt(skops, SOL_IP, IP_TOS, &v, sizeof(v)) >>> >>> where skops is a pointer to the

Re: [PATCH bpf-next]: add sock_ops R/W access to ipv4 tos

2018-03-28 Thread Nikita Shirokov
>>On 03/26/2018 05:36 PM, Nikita V. Shirokov wrote: >> bpf: Add sock_ops R/W access to ipv4 tos >> >> Sample usage for tos: >> >>   bpf_getsockopt(skops, SOL_IP, IP_TOS, &v, sizeof(v)) >> >> where skops is a pointer to the ctx (struct bpf_sock_ops). >> >> Signed-off-by: Nikita V. S

Re: [PATCH bpf-next]: add sock_ops R/W access to ipv4 tos

2018-03-28 Thread Daniel Borkmann
On 03/26/2018 05:36 PM, Nikita V. Shirokov wrote: > bpf: Add sock_ops R/W access to ipv4 tos > > Sample usage for tos: > > bpf_getsockopt(skops, SOL_IP, IP_TOS, &v, sizeof(v)) > > where skops is a pointer to the ctx (struct bpf_sock_ops). > > Signed-off-by: Nikita V. Shirokov

[PATCH bpf-next]: add sock_ops R/W access to ipv4 tos

2018-03-26 Thread Nikita V. Shirokov
bpf: Add sock_ops R/W access to ipv4 tos Sample usage for tos: bpf_getsockopt(skops, SOL_IP, IP_TOS, &v, sizeof(v)) where skops is a pointer to the ctx (struct bpf_sock_ops). Signed-off-by: Nikita V. Shirokov --- net/core/filter.c | 35 +++ 1