ipv4_autoconf.h 670 B

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