Api/dhcp

From Minux Wiki
Revision as of 22:51, 24 September 2024 by Shorun (talk | contribs) (Created page with "the dhcp api is part of the a[https://wolfpak.vtchost.com/forum/viewtopic.php?f=17&t=46&sid=2ce2c9aa6ecdc05c0058253d52fe37ce uth-client software package] and requires a working dhcp server '''''dhcp.renew()''''' broadcasts for a dhcp server and renews the id '''''dhcp.lookup(name)''''' does a lookup in the register for "name", can be either name or ID outputs data in _G.lookupid, _G.lookupname, _G.lookupowner for use by other programs....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

the dhcp api is part of the auth-client software package and requires a working dhcp server


dhcp.renew()

broadcasts for a dhcp server and renews the id

dhcp.lookup(name)

does a lookup in the register for "name", can be either name or ID

outputs data in _G.lookupid, _G.lookupname, _G.lookupowner for use by other programs.

dhcp.register(systemname)

registers this system as "systemname" and adds it to the lookup function. must be an actual name.

dhcp.unregister(systemname)

removes this system from the register and lookup function, can be either name or ID