]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
b36672e0 DM |
2 | #pragma once |
3 | ||
a2106925 | 4 | #include "conf-parser.h" |
b36672e0 DM |
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 | ||
a2106925 | 17 | CONFIG_PARSER_PROTOTYPE(config_parse_ip_address_access); |
b36672e0 DM |
18 | |
19 | IPAddressAccessItem* ip_address_access_free_all(IPAddressAccessItem *first); | |
1274b6c6 LP |
20 | |
21 | IPAddressAccessItem* ip_address_access_reduce(IPAddressAccessItem *first); |