Contiki-NG
|
Macros | |
#define | uip_sethostaddr(addr) |
Set the IP address of this host. | |
#define | uip_gethostaddr(addr) |
Get the IP address of this host. | |
The uIP configuration functions are used for setting run-time parameters in uIP such as IP addresses.
#define uip_gethostaddr | ( | addr | ) |
Get the IP address of this host.
The IP address is represented as a 4-byte array where the first octet of the IP address is put in the first member of the 4-byte array.
Example:
addr | A pointer to a uip_ipaddr_t variable that will be filled in with the currently configured IP address. |
#define uip_sethostaddr | ( | addr | ) |
Set the IP address of this host.
The IP address is represented as a 4-byte array where the first octet of the IP address is put in the first member of the 4-byte array.
Example:
addr | A pointer to an IP address of type uip_ipaddr_t; |