]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add sock_ops R/W access to ipv4 tos
authorNikita V. Shirokov <tehnerd@fb.com>
Mon, 26 Mar 2018 15:36:57 +0000 (08:36 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 28 Mar 2018 19:05:35 +0000 (21:05 +0200)
commitd3460efba221c95ee1f8fa1a24ed09adaa3b62b4
treeca8000b083f974d4d87861ea89cb43e25049fa77
parent0034101909484676891ab14606e816c46f289614
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 <tehnerd@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/core/filter.c