]> 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)
commitc3834dedcaa7122d884995f9dce7875dedb3f7cb
treeca8000b083f974d4d87861ea89cb43e25049fa77
parent88e6f20f8ac9337062637f9b720bd8a83f9308b8
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