]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/tc/qdisc.h
network: cleanup header inclusion
[thirdparty/systemd.git] / src / network / tc / qdisc.h
1 /* SPDX-License-Identifier: LGPL-2.1+
2 * Copyright © 2019 VMware, Inc. */
3 #pragma once
4
5 #include "conf-parser.h"
6 #include "netem.h"
7 #include "networkd-link.h"
8 #include "networkd-network.h"
9 #include "networkd-util.h"
10
11 typedef struct QDiscs {
12 NetworkConfigSection *section;
13 Network *network;
14
15 Link *link;
16
17 int family;
18
19 uint32_t handle;
20 uint32_t parent;
21
22 bool has_network_emulator:1;
23
24 NetworkEmulator ne;
25 } QDiscs;
26
27 void qdisc_free(QDiscs *qdisc);
28 int qdisc_new_static(Network *network, const char *filename, unsigned section_line, QDiscs **ret);
29
30 int qdisc_configure(Link *link, QDiscs *qdisc);
31
32 DEFINE_NETWORK_SECTION_FUNCTIONS(QDiscs, qdisc_free);
33
34 CONFIG_PARSER_PROTOTYPE(config_parse_tc_qdiscs_parent);