Contiki-NG
Loading...
Searching...
No Matches
uIP configuration functions

Macros

#define uip_sethostaddr(addr)
 Set the IP address of this host.
 
#define uip_gethostaddr(addr)
 Get the IP address of this host.
 

Detailed Description

The uIP configuration functions are used for setting run-time parameters in uIP such as IP addresses.

Macro Definition Documentation

◆ 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:

uip_ipaddr_t hostaddr;
uip_gethostaddr(&hostaddr);
#define uip_gethostaddr(addr)
Get the IP address of this host.
Definition uip.h:217
Parameters
addrA 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_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:

uip_ipaddr_t addr;
uip_ipaddr(&addr, 192,168,1,2);
#define uip_sethostaddr(addr)
Set the IP address of this host.
Definition uip.h:197
#define uip_ipaddr(addr, addr0, addr1, addr2, addr3)
Construct an IP address from four bytes.
Definition uip.h:898
static uip_ds6_addr_t * addr
Pointer to a nbr cache entry.
Definition uip-nd6.c:107
Parameters
addrA pointer to an IP address of type uip_ipaddr_t;
See also
uip_ipaddr()

Definition at line 197 of file uip.h.