Determine if a network interface is managed by DHCP, and return the associated settings.
#include <sys/dhcpinfo.h>
DHCPLEASEINFO* DHCPLeaseInfoGet( const char* ifname // the interface name. ie1g0, ven0, ... );
ENODEV |
the tcp/ip stack is not running |
ENOMEM |
a memory allocation failed |
ENOENT |
the interface is not managed by DHCP |
EFTYPE |
an error occured collecting the DHCP Lease information |
Versions | Link to |
---|---|
INtime 7.1 |