Functions | |
int32_t | net_init (char *ip, char *subnet, char *gateway, uint32_t(*dhcp_func)(char *, uint16_t), char *dns, uint32_t(*dns_func)(void)) |
Main network initialization function. More... | |
int32_t net_init | ( | char * | ip, |
char * | subnet, | ||
char * | gateway, | ||
uint32_t(*)(char *, uint16_t) | dhcp_func, | ||
char * | dns, | ||
uint32_t(*)(void) | dns_func | ||
) |
Initialize ARP table, sockets, timers and protocol specific handlers and assign the unique IP address (static or dynamic)
ip |
|
subnet |
|
gateway |
|
dhcp_func |
|
dns |
|
dns_func |
|