mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-09 15:14:00 +00:00
Add basic IPv4 Link Local support as described in RFC 3927. Signed-off-by: Matthias Boesl <matthias.boesl@gmail.com> Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
33 lines
616 B
C
33 lines
616 B
C
/*
|
|
* Copyright (c) 2017 Matthias Boesl
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/** @file
|
|
* @brief IPv4 Autoconfiguration
|
|
*/
|
|
|
|
#ifndef __IPV4_AUTOCONF_H
|
|
#define __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 /* __IPV4_AUTOCONF_H */
|