]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/networkd-util.h
tree-wide: drop license boilerplate
[thirdparty/systemd.git] / src / network / networkd-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 This file is part of systemd.
6
7 Copyright 2013 Tom Gundersen <teg@jklm.no>
8 ***/
9
10 #include "macro.h"
11
12 typedef enum AddressFamilyBoolean {
13 /* This is a bitmask, though it usually doesn't feel that way! */
14 ADDRESS_FAMILY_NO = 0,
15 ADDRESS_FAMILY_IPV4 = 1,
16 ADDRESS_FAMILY_IPV6 = 2,
17 ADDRESS_FAMILY_YES = 3,
18 _ADDRESS_FAMILY_BOOLEAN_MAX,
19 _ADDRESS_FAMILY_BOOLEAN_INVALID = -1,
20 } AddressFamilyBoolean;
21
22 int config_parse_address_family_boolean(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 int config_parse_address_family_boolean_with_kernel(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);
24
25 const char *address_family_boolean_to_string(AddressFamilyBoolean b) _const_;
26 AddressFamilyBoolean address_family_boolean_from_string(const char *s) _const_;
27
28 int kernel_route_expiration_supported(void);