Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# dhcp.c File Reference

## Detailed Description

Definition in file dhcp.c.

`#include "global.h"`
`#include "net.h"`
`#include "nic.h"`
`#include "ip.h"`
`#include "netstack.h"`
`#include "dhcp.h"`
`#include "rprintf.h"`

Go to the source code of this file.

## Functions
void | dhcpInit (void)
void | dhcpIn (unsigned int len, struct netDhcpHeader *packet)
void | dhcpRequest (void)
void | dhcpRelease (void)
void | dhcpTimer (void)
uint8_t | dhcpGetOption (uint8_t *options, uint8_t optcode, uint8_t optlen, void *optvalptr)
uint8_t * | dhcpSetOption (uint8_t *options, uint8_t optcode, uint8_t optlen, void *optvalptr)
## Variables
uint32_t | DhcpServerIP
| IP address of the DHCP server that offered lease.
uint32_t | DhcpTransactID
| Unique transaction ID that identifies DHCP request/replies.
uint32_t | DhcpLeaseTime
| Number of seconds left in DHCP lease.