The uIP configuration functions are used for setting run-time parameters in uIP such as IP addresses.
Macros | |
#define | uip_getdraddr(addr) |
Get the default router's IP address. More... | |
#define | uip_gethostaddr(addr) |
Get the IP address of this host. More... | |
#define | uip_getnetmask(addr) |
Get the netmask. More... | |
#define | uip_setdraddr(addr) |
Set the default router's IP address. More... | |
#define | uip_setethaddr(eaddr) |
Specifiy the Ethernet MAC address. More... | |
#define | uip_sethostaddr(addr) |
Set the IP address of this host. More... | |
#define | uip_setnetmask(addr) |
Set the netmask. More... | |
#define uip_getdraddr | ( | addr | ) |
Get the default router's IP address.
addr | A pointer to a uip_ipaddr_t variable that will be filled in with the IP address of the default router. |
#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. |
Referenced by send_rreq().
#define uip_getnetmask | ( | addr | ) |
Get the netmask.
addr | A pointer to a uip_ipaddr_t variable that will be filled in with the value of the netmask. |
#define uip_setdraddr | ( | addr | ) |
Set the default router's IP address.
addr | A pointer to a uip_ipaddr_t variable containing the IP address of the default router. |
#define uip_setethaddr | ( | eaddr | ) |
Specifiy the Ethernet MAC address.
The ARP code needs to know the MAC address of the Ethernet card in order to be able to respond to ARP queries and to generate working Ethernet headers.
eaddr | A pointer to a struct uip_eth_addr containing the Ethernet MAC address of the Ethernet card. |
#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; |
Referenced by dhcpc_request(), and ip64_dhcpc_request().
#define uip_setnetmask | ( | addr | ) |
Set the netmask.
addr | A pointer to a uip_ipaddr_t variable containing the IP address of the netmask. |