nerves_interim_wifi v0.2.0 Nerves.InterimWiFi.Udhcpc

This module interacts with udhcpc to interact with DHCP servers.

Summary

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

Functions

release(pid)

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(pid)

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

start_link(ifname)

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

stop(pid)

Stop the dhcp client