]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit6f5c39fa5cd4a78c5432021e981aa8f79437a32c
treeca8000b083f974d4d87861ea89cb43e25049fa77
parent20cfb7a04f0a8b7f8f45cf630e23524d51bb3cd9
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