vintage_net v0.2.1 VintageNet.IP.ConfigToUdhcpd
This is a helper module for VintageNet.Technology implementations that use the udhcpd server.
Link to this section Summary
Functions
Convert a configuration to the contents of a /etc/udhcpd.conf file
Link to this section Functions
config_to_udhcpd_contents(ifname, map, tmpdir)
config_to_udhcpd_contents(VintageNet.ifname(), map(), Path.t()) :: String.t()
config_to_udhcpd_contents(VintageNet.ifname(), map(), Path.t()) :: String.t()
Convert a configuration to the contents of a /etc/udhcpd.conf file
start
- Start of the lease block
end
- End of the lease block
max_leases
- The maximum number of leases
decline_time
- The amount of time that an IP will be reserved (leased to nobody)
conflict_time
-The amount of time that an IP will be reserved
offer_time
- How long an offered address is reserved (seconds)
min_lease
- If client asks for lease below this value, it will be rounded up to this value (seconds)
auto_time
- The time period at which udhcpd will write out leases file.
static_leases
- list of {macaddress, ipaddress}