bpf-program: optionally take fd of program to detach
authorLennart Poettering <lennart@poettering.net>
Fri, 16 Feb 2018 13:58:12 +0000 (14:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Feb 2018 15:43:36 +0000 (16:43 +0100)
commit9b3c189786a637fbd3b402a1c09626cb831c0fd3
tree027c58104dca8f7d4c4301d8b759fd97f92ddf55
parent2ae7ee58fa03340f767821298475d8845bda0b2c
bpf-program: optionally take fd of program to detach

This is useful for BPF_F_ALLOW_MULTI programs, where the kernel requires
us to specify the fd.
src/basic/bpf-program.c
src/basic/bpf-program.h
src/core/bpf-firewall.c