]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/core/bpf-firewall.h
basic/terminal-util: add support for $NO_COLOR
[thirdparty/systemd.git] / src / core / bpf-firewall.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
1988a9d1
DM
2#pragma once
3
1988a9d1
DM
4#include <inttypes.h>
5
6#include "unit.h"
7
2ae7ee58
LP
8enum {
9 BPF_FIREWALL_UNSUPPORTED = 0,
10 BPF_FIREWALL_SUPPORTED = 1,
11 BPF_FIREWALL_SUPPORTED_WITH_MULTI = 2,
12};
13
1988a9d1
DM
14int bpf_firewall_supported(void);
15
16int bpf_firewall_compile(Unit *u);
17int bpf_firewall_install(Unit *u);
fab34748 18int bpf_firewall_load_custom(Unit *u);
1988a9d1
DM
19
20int bpf_firewall_read_accounting(int map_fd, uint64_t *ret_bytes, uint64_t *ret_packets);
21int bpf_firewall_reset_accounting(int map_fd);
84d2744b
ZJS
22
23void emit_bpf_firewall_warning(Unit *u);