Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
dhcpv4.h
Go to the documentation of this file.
1
5/*
6 * Copyright (c) 2016 Intel Corporation
7 *
8 * SPDX-License-Identifier: Apache-2.0
9 */
10
11#ifndef ZEPHYR_INCLUDE_NET_DHCPV4_H_
12#define ZEPHYR_INCLUDE_NET_DHCPV4_H_
13
14#include <sys/slist.h>
15#include <zephyr/types.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
35enum net_dhcpv4_state {
36 NET_DHCPV4_DISABLED,
37 NET_DHCPV4_INIT,
38 NET_DHCPV4_SELECTING,
39 NET_DHCPV4_REQUESTING,
40 NET_DHCPV4_RENEWING,
41 NET_DHCPV4_REBINDING,
42 NET_DHCPV4_BOUND,
43} __packed;
44
56void net_dhcpv4_start(struct net_if *iface);
57
67void net_dhcpv4_stop(struct net_if *iface);
68
76const char *net_dhcpv4_state_name(enum net_dhcpv4_state state);
77
84#ifdef __cplusplus
85}
86#endif
87
88#endif /* ZEPHYR_INCLUDE_NET_DHCPV4_H_ */
void net_dhcpv4_stop(struct net_if *iface)
Stop DHCPv4 client on an iface.
void net_dhcpv4_start(struct net_if *iface)
Start DHCPv4 client on an iface.
state
Definition: http_parser_state.h:30
Single-linked list implementation.
Network Interface structure.
Definition: net_if.h:468