2018-07-30 23:28:35 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Matthias Boesl
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @file
|
|
|
|
* @brief IPv4 Autoconfiguration
|
|
|
|
*/
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_INCLUDE_NET_IPV4_AUTOCONF_H_
|
|
|
|
#define ZEPHYR_INCLUDE_NET_IPV4_AUTOCONF_H_
|
2018-07-30 23:28:35 +08:00
|
|
|
|
|
|
|
/** Current state of IPv4 Autoconfiguration */
|
|
|
|
enum net_ipv4_autoconf_state {
|
|
|
|
NET_IPV4_AUTOCONF_INIT,
|
|
|
|
NET_IPV4_AUTOCONF_PROBE,
|
|
|
|
NET_IPV4_AUTOCONF_ANNOUNCE,
|
|
|
|
NET_IPV4_AUTOCONF_ASSIGNED,
|
|
|
|
NET_IPV4_AUTOCONF_RENEW,
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Initialize IPv4 auto configuration engine.
|
|
|
|
*/
|
|
|
|
#if defined(CONFIG_NET_IPV4_AUTO)
|
|
|
|
void net_ipv4_autoconf_init(void);
|
|
|
|
#else
|
|
|
|
#define net_ipv4_autoconf_init(...)
|
|
|
|
#endif
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_INCLUDE_NET_IPV4_AUTOCONF_H_ */
|