vintage_net v0.7.7 VintageNet.ToElixir.UdhcpdHandler behaviour View Source
A behaviour for handling notifications from udhcpd
Example
defmodule MyApp.UdhcpdHandler do
@behaviour VintageNet.ToElixir.UdhcpdHandler
@impl true
def lease_update(ifname, report_data) do
...
end
end
To have VintageNet invoke it, add the following to your config.exs
:
config :vintage_net, udhcpd_handler: MyApp.UdhcpdHandler
Link to this section Summary
Functions
Called internally by vintage_net to dispatch calls
Callbacks
The DHCP lease file was updated
Link to this section Types
Link to this section Functions
Link to this function
dispatch(function, ifname, lease_file)
View Sourcedispatch(atom(), VintageNet.ifname(), Path.t()) :: :ok
Called internally by vintage_net to dispatch calls
Link to this section Callbacks
Link to this callback
lease_update(arg1, arg2)
View Sourcelease_update(VintageNet.ifname(), Path.t()) :: :ok
The DHCP lease file was updated