]> git.proxmox.com Git - systemd.git/blob - src/core/bpf-firewall.h
New upstream version 240
[systemd.git] / src / core / bpf-firewall.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <inttypes.h>
5
6 #include "unit.h"
7
8 enum {
9 BPF_FIREWALL_UNSUPPORTED = 0,
10 BPF_FIREWALL_SUPPORTED = 1,
11 BPF_FIREWALL_SUPPORTED_WITH_MULTI = 2,
12 };
13
14 int bpf_firewall_supported(void);
15
16 int bpf_firewall_compile(Unit *u);
17 int bpf_firewall_install(Unit *u);
18
19 int bpf_firewall_read_accounting(int map_fd, uint64_t *ret_bytes, uint64_t *ret_packets);
20 int bpf_firewall_reset_accounting(int map_fd);