Embed: (wiki syntax)

« Back to documentation index

address.h File Reference

address.h File Reference

address type definitions. More...

Go to the source code of this file.

Data Structures

struct  ns_sockaddr
 Address structure. More...

Typedefs

typedef uint8_t address_t [ADDR_SIZE]
 Address field.
typedef struct ns_sockaddr sockaddr_t
 Address structure.

Enumerations

enum  addrtype_t {
  ADDR_NONE = 0, ADDR_802_15_4_SHORT = 2, ADDR_802_15_4_LONG = 3, ADDR_IPV6 = 4,
  ADDR_BROADCAST = 6, ADDR_EUI_48 = 7
}
 

Address types.

More...

Functions

uint8_t addr_check_broadcast (const address_t addr, addrtype_t addr_type)
 Functions provided by address.c.

Detailed Description

address type definitions.

nanoStack: supported address types and associated data structures.

Definition in file address.h.


Typedef Documentation

typedef uint8_t address_t[ADDR_SIZE]

Address field.

Definition at line 48 of file address.h.

typedef struct ns_sockaddr sockaddr_t

Address structure.


Enumeration Type Documentation

enum addrtype_t

Address types.

Enumerator:
ADDR_NONE 

No address

ADDR_802_15_4_SHORT 

16-bit PAN with 16-bit 802.15.4 address

ADDR_802_15_4_LONG 

16-bit PAN with 64-bit 802.15.4 address

ADDR_IPV6 

128 bit IPv6 address containing both Prefix (high 64 bits) and Interface identifier (low 64 bits)

ADDR_BROADCAST 

Broadcast (inc RFC 4944 multicast) address (obsolescent)

ADDR_EUI_48 

48-bit Extended Unique Identifier (eg Ethernet)

Definition at line 37 of file address.h.


Function Documentation

uint8_t addr_check_broadcast ( const address_t  addr,
addrtype_t  addr_type 
)

Functions provided by address.c.

Functions provided by address.c.

Parameters:
addrpointer to an address_t containing the address to be checked
addr_typethe type of the address_t
Returns:
0 if the address is a broadcast address

Definition at line 134 of file address.c.