]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/ip-address-access.h
tree-wide: drop license boilerplate
[thirdparty/systemd.git] / src / core / ip-address-access.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 This file is part of systemd.
6
7 Copyright 2016 Daniel Mack
8 ***/
9
10 #include "in-addr-util.h"
11 #include "list.h"
12
13 typedef struct IPAddressAccessItem IPAddressAccessItem;
14
15 struct IPAddressAccessItem {
16 int family;
17 unsigned char prefixlen;
18 union in_addr_union address;
19 LIST_FIELDS(IPAddressAccessItem, items);
20 };
21
22 int config_parse_ip_address_access(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
23
24 IPAddressAccessItem* ip_address_access_free_all(IPAddressAccessItem *first);
25
26 IPAddressAccessItem* ip_address_access_reduce(IPAddressAccessItem *first);