src/core/bpf-firewall.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | #pragma once |
| 3 | |
| 4 | #include "core-forward.h" |
| 5 | |
| 6 | int bpf_firewall_compile(Unit *u); |
| 7 | int bpf_firewall_install(Unit *u); |
| 8 | int bpf_firewall_load_custom(Unit *u); |
| 9 | |
| 10 | int bpf_firewall_read_accounting(int map_fd, uint64_t *ret_bytes, uint64_t *ret_packets); |
| 11 | int bpf_firewall_reset_accounting(int map_fd); |
| 12 | |
| 13 | void emit_bpf_firewall_warning(Unit *u); |
| 14 | |
| 15 | void bpf_firewall_close(CGroupRuntime *crt); |