nerves_network v0.3.6 Nerves.Network.Udhcpc

This module interacts with udhcpc to interact with DHCP servers.

Link to this section Summary

Types

Event from the udhcpc server to be sent via SystemRegistry

State of the GenServer

Instance of this server

Message from the udhcpc port

Functions

Notify the DHCP server to release the IP address currently assigned to this interface. After calling this, be sure to disassociate the IP address from the interface so that packets don’t accidentally get sent or processed

Renew the lease on the IP address with the DHCP server

Start and link a Udhcpc process for the specified interface (i.e., eth0, wlan0)

Stop the dhcp client

Link to this section Types

Link to this type event()
event() :: :deconfig | :bound | :renew | :leasefail | :nak

Event from the udhcpc server to be sent via SystemRegistry.

Link to this type state()
state() :: %{ifname: Nerves.Network.Types.ifname, port: port}

State of the GenServer.

Instance of this server.

Link to this type udhcpc_wrapper_event()
udhcpc_wrapper_event() :: [...]

Message from the udhcpc port.

Link to this section Functions

Link to this function release(pid)
release(udhcpc) :: :ok

Notify the DHCP server to release the IP address currently assigned to this interface. After calling this, be sure to disassociate the IP address from the interface so that packets don’t accidentally get sent or processed.

Link to this function renew(pid)
renew(udhcpc) :: :ok

Renew the lease on the IP address with the DHCP server.

Start and link a Udhcpc process for the specified interface (i.e., eth0, wlan0).

Link to this function stop(pid)
stop(udhcpc) :: :ok

Stop the dhcp client