Defines | |
#define | uip_sethostaddr(addr) |
Set the IP address of this host. | |
#define | uip_gethostaddr(addr) |
Get the IP address of this host. | |
#define | uip_setdraddr(addr) |
Set the default router's IP address. | |
#define | uip_setnetmask(addr) |
Set the netmask. | |
#define | uip_getdraddr(addr) |
Get the default router's IP address. | |
#define | uip_getnetmask(addr) |
Get the netmask. | |
#define | uip_setethaddr(eaddr) |
Specifiy the Ethernet MAC address. |
|
Get the default router's IP address.
|
|
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: uip_ipaddr_t hostaddr; uip_gethostaddr(&hostaddr);
|
|
Get the netmask.
|
|
Set the default router's IP address.
|
|
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.
|
|
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: uip_ipaddr_t addr; uip_ipaddr(&addr, 192,168,1,2); uip_sethostaddr(&addr);
|
|
Set the netmask.
|