Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS

DHCPv4. More...

Functions

void net_dhcpv4_start (struct net_if *iface)
 Start DHCPv4 client on an iface. More...
 
void net_dhcpv4_stop (struct net_if *iface)
 Stop DHCPv4 client on an iface. More...
 

Detailed Description

DHCPv4.

Function Documentation

◆ net_dhcpv4_start()

void net_dhcpv4_start ( struct net_if iface)

#include <include/net/dhcpv4.h>

Start DHCPv4 client on an iface.

Start DHCPv4 client on a given interface. DHCPv4 client will start negotiation for IPv4 address. Once the negotiation is success IPv4 address details will be added to interface.

Parameters
ifaceA valid pointer on an interface

◆ net_dhcpv4_stop()

void net_dhcpv4_stop ( struct net_if iface)

#include <include/net/dhcpv4.h>

Stop DHCPv4 client on an iface.

Stop DHCPv4 client on a given interface. DHCPv4 client will remove all configuration obtained from a DHCP server from the interface and stop any further negotiation with the server.

Parameters
ifaceA valid pointer on an interface