vintage_net v0.5.1 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
Called internally by vintage_net to dispatch calls
Link to this section Callbacks
The DHCP lease file was updated