The uIP configuration functions are used for setting run-time parameters in uIP such as IP addresses.
More...
The uIP configuration functions are used for setting run-time parameters in uIP such as IP addresses.
◆ uip_getdraddr
#define uip_getdraddr |
( |
|
addr | ) |
|
Get the default router's IP address.
- Parameters
-
addr | A pointer to a uip_ipaddr_t variable that will be filled in with the IP address of the default router. |
Definition at line 252 of file uip.h.
◆ uip_gethostaddr
#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:
- Parameters
-
addr | A pointer to a uip_ipaddr_t variable that will be filled in with the currently configured IP address. |
Definition at line 217 of file uip.h.
◆ uip_getnetmask
#define uip_getnetmask |
( |
|
addr | ) |
|
Get the netmask.
- Parameters
-
addr | A pointer to a uip_ipaddr_t variable that will be filled in with the value of the netmask. |
Definition at line 262 of file uip.h.
◆ uip_setdraddr
#define uip_setdraddr |
( |
|
addr | ) |
|
Set the default router's IP address.
- Parameters
-
addr | A pointer to a uip_ipaddr_t variable containing the IP address of the default router. |
- See also
- uip_ipaddr()
Definition at line 229 of file uip.h.
◆ uip_sethostaddr
#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:
- Parameters
-
addr | A pointer to an IP address of type uip_ipaddr_t; |
- See also
- uip_ipaddr()
Definition at line 197 of file uip.h.
◆ uip_setnetmask
#define uip_setnetmask |
( |
|
addr | ) |
|
Set the netmask.
- Parameters
-
addr | A pointer to a uip_ipaddr_t variable containing the IP address of the netmask. |
- See also
- uip_ipaddr()
Definition at line 241 of file uip.h.