Data Structures | |
struct | bootp |
DHCP telegram structure. More... | |
Defines | |
#define | DHCP_SERVERPORT |
#define | DHCP_CLIENTPORT |
#define | DHCPOPT_PAD |
#define | DHCPOPT_NETMASK |
#define | DHCPOPT_GATEWAY |
#define | DHCPOPT_DNS |
#define | DHCPOPT_HOSTNAME |
#define | DHCPOPT_DOMAIN |
#define | DHCPOPT_BROADCAST |
#define | DHCPOPT_REQESTIP |
#define | DHCPOPT_LEASETIME |
#define | DHCPOPT_MSGTYPE |
#define | DHCPOPT_SID |
#define | DHCPOPT_PARAMREQUEST |
#define | DHCPOPT_MAXMSGSIZE |
#define | DHCPOPT_RENEWALTIME |
#define | DHCPOPT_REBINDTIME |
#define | DHCPOPT_END |
#define | DHCP_DISCOVER |
Client broadcast to locate available servers. | |
#define | DHCP_OFFER |
Server to client in response to DHCP_DISCOVER. Contains an offer of configuration parameters. | |
#define | DHCP_REQUEST |
Client message to servers. Used for -requesting offered parameters from one server and implicitly declining offers from all others. -confirming correctness of previously allocated address after, e.g., system reboot. -extending the lease on a particular network address. | |
#define | DHCP_DECLINE |
Client to server indicating network address is already in use. | |
#define | DHCP_ACK |
Server to client with configuration parameters. Contains committed network address. | |
#define | DHCP_NAK |
Server to client indicating client's notion of network address is incorrect. May be caused by the client's move to new subnet or by expiration of the client's lease. | |
#define | DHCP_RELEASE |
Client to server relinquishing network address and cancelling remaining lease. | |
#define | DHCP_INFORM |
Client to server, asking only for local configuration parameters. Used, if the client already has externally configured network address. | |
Functions | |
int | NutDhcpIfConfig (CONST char *name, u_char *mac, u_long timeout) |
Automatically configure an Ethernet network interface. | |
int | NutDhcpRelease (CONST char *name, u_long timeout) |
Relinguish our DHCP lease. |