zephyr/include/net/ipv4_autoconf.h

33 lines
670 B
C
Raw Normal View History

/*
* Copyright (c) 2017 Matthias Boesl
*
* SPDX-License-Identifier: Apache-2.0
*/
/** @file
* @brief IPv4 Autoconfiguration
*/
#ifndef ZEPHYR_INCLUDE_NET_IPV4_AUTOCONF_H_
#define ZEPHYR_INCLUDE_NET_IPV4_AUTOCONF_H_
/** 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
#endif /* ZEPHYR_INCLUDE_NET_IPV4_AUTOCONF_H_ */