]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/ip-address-access.h
core: make manager_serialize() a bit easier to read by adding predicate function
[thirdparty/systemd.git] / src / core / ip-address-access.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include "conf-parser.h"
5 #include "in-addr-util.h"
6 #include "list.h"
7
8 typedef struct IPAddressAccessItem IPAddressAccessItem;
9
10 struct IPAddressAccessItem {
11 int family;
12 unsigned char prefixlen;
13 union in_addr_union address;
14 LIST_FIELDS(IPAddressAccessItem, items);
15 };
16
17 CONFIG_PARSER_PROTOTYPE(config_parse_ip_address_access);
18
19 IPAddressAccessItem* ip_address_access_free_all(IPAddressAccessItem *first);
20
21 IPAddressAccessItem* ip_address_access_reduce(IPAddressAccessItem *first);