1 /*
2  * Copyright (c) 2017 Matthias Boesl
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 /** @file
8  * @brief IPv4 Autoconfiguration
9  */
10 
11 #ifndef ZEPHYR_INCLUDE_NET_IPV4_AUTOCONF_H_
12 #define ZEPHYR_INCLUDE_NET_IPV4_AUTOCONF_H_
13 
14 /** Current state of IPv4 Autoconfiguration */
15 enum net_ipv4_autoconf_state {
16 	NET_IPV4_AUTOCONF_INIT,
17 	NET_IPV4_AUTOCONF_PROBE,
18 	NET_IPV4_AUTOCONF_ANNOUNCE,
19 	NET_IPV4_AUTOCONF_ASSIGNED,
20 	NET_IPV4_AUTOCONF_RENEW,
21 };
22 
23 /**
24  * @brief Initialize IPv4 auto configuration engine.
25  */
26 #if defined(CONFIG_NET_IPV4_AUTO)
27 void net_ipv4_autoconf_init(void);
28 #else
29 #define net_ipv4_autoconf_init(...)
30 #endif
31 
32 #endif /* ZEPHYR_INCLUDE_NET_IPV4_AUTOCONF_H_ */
33