11#ifndef ZEPHYR_INCLUDE_NET_DHCPV4_H_ 
   12#define ZEPHYR_INCLUDE_NET_DHCPV4_H_ 
   35enum net_dhcpv4_state {
 
   39        NET_DHCPV4_REQUESTING,
 
   67#ifdef CONFIG_NET_DHCPV4_OPTION_CALLBACKS 
   69struct net_dhcpv4_option_callback;
 
   86typedef void (*net_dhcpv4_option_callback_handler_t)(
struct net_dhcpv4_option_callback *cb,
 
  103struct net_dhcpv4_option_callback {
 
  110        net_dhcpv4_option_callback_handler_t 
handler;
 
  134static inline void net_dhcpv4_init_option_callback(
struct net_dhcpv4_option_callback *callback,
 
  135                                                   net_dhcpv4_option_callback_handler_t 
handler,
 
  140        __ASSERT(callback, 
"Callback pointer should not be NULL");
 
  141        __ASSERT(
handler, 
"Callback handler pointer should not be NULL");
 
  142        __ASSERT(
data, 
"Data pointer should not be NULL");
 
  145        callback->option = option;
 
  146        callback->data = 
data;
 
  147        callback->max_length = max_length;
 
  155int net_dhcpv4_add_option_callback(
struct net_dhcpv4_option_callback *cb);
 
  162int net_dhcpv4_remove_option_callback(
struct net_dhcpv4_option_callback *cb);
 
  206const char *net_dhcpv4_state_name(
enum net_dhcpv4_state 
state);
 
const char * net_dhcpv4_msg_type_name(enum net_dhcpv4_msg_type msg_type)
Return a text representation of the msg_type.
 
void net_dhcpv4_restart(struct net_if *iface)
Restart DHCPv4 client on an iface.
 
void net_dhcpv4_stop(struct net_if *iface)
Stop DHCPv4 client on an iface.
 
net_dhcpv4_msg_type
DHCPv4 message types.
Definition: dhcpv4.h:56
 
void net_dhcpv4_start(struct net_if *iface)
Start DHCPv4 client on an iface.
 
@ NET_DHCPV4_MSG_TYPE_REQUEST
Definition: dhcpv4.h:59
 
@ NET_DHCPV4_MSG_TYPE_ACK
Definition: dhcpv4.h:61
 
@ NET_DHCPV4_MSG_TYPE_OFFER
Definition: dhcpv4.h:58
 
@ NET_DHCPV4_MSG_TYPE_RELEASE
Definition: dhcpv4.h:63
 
@ NET_DHCPV4_MSG_TYPE_NAK
Definition: dhcpv4.h:62
 
@ NET_DHCPV4_MSG_TYPE_DISCOVER
Definition: dhcpv4.h:57
 
@ NET_DHCPV4_MSG_TYPE_INFORM
Definition: dhcpv4.h:64
 
@ NET_DHCPV4_MSG_TYPE_DECLINE
Definition: dhcpv4.h:60
 
state
Definition: parser_state.h:29
 
Single-linked list implementation.
 
struct _snode sys_snode_t
Definition: slist.h:33
 
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
 
Network Interface structure.
Definition: net_if.h:516
 
static fdata_t data[2]
Definition: test_fifo_contexts.c:15
 
static void handler(struct k_timer *timer)
Definition: main.c:19