vintage_net v0.6.0 VintageNet.ToElixir.UdhcpcHandler behaviour View Source

A behaviour for handling notifications from udhcpc

Example

defmodule MyApp.UdhcpcHandler do
  @behaviour VintageNet.ToElixir.UdhcpcHandler

  @impl true
  def deconfig(data) do
    ...
  end
end

To have NervesHub invoke it, add the following to your config.exs:

config :vintage_net, udhcpc_handler: MyApp.UdhcpcHandler

Link to this section Summary

Functions

Called internally by vintage_net to dispatch calls

Link to this section Types

Link to this type

update_data()

View Source
update_data() :: map()

Link to this section Functions

Link to this function

dispatch(function, ifname, update_data)

View Source
dispatch(atom(), ifname(), update_data()) :: :ok

Called internally by vintage_net to dispatch calls

Link to this section Callbacks

Link to this callback

bound(ifname, update_data)

View Source
bound(ifname(), update_data()) :: :ok
Link to this callback

deconfig(ifname, update_data)

View Source
deconfig(ifname(), update_data()) :: :ok
Link to this callback

leasefail(ifname, update_data)

View Source
leasefail(ifname(), update_data()) :: :ok
Link to this callback

nak(ifname, update_data)

View Source
nak(ifname(), update_data()) :: :ok
Link to this callback

renew(ifname, update_data)

View Source
renew(ifname(), update_data()) :: :ok