]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/core/ip-address-access.h
tree-wide: beautify remaining copyright statements
[thirdparty/systemd.git] / src / core / ip-address-access.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
b36672e0
DM
2#pragma once
3
4/***
96b2fb93 5 Copyright © 2016 Daniel Mack
b36672e0
DM
6***/
7
a2106925 8#include "conf-parser.h"
b36672e0
DM
9#include "in-addr-util.h"
10#include "list.h"
11
12typedef struct IPAddressAccessItem IPAddressAccessItem;
13
14struct IPAddressAccessItem {
15 int family;
16 unsigned char prefixlen;
17 union in_addr_union address;
18 LIST_FIELDS(IPAddressAccessItem, items);
19};
20
a2106925 21CONFIG_PARSER_PROTOTYPE(config_parse_ip_address_access);
b36672e0
DM
22
23IPAddressAccessItem* ip_address_access_free_all(IPAddressAccessItem *first);
1274b6c6
LP
24
25IPAddressAccessItem* ip_address_access_reduce(IPAddressAccessItem *first);