Contiki 2.5
Files | Functions | Variables

The rimeaddr module is an abstract representation of addresses in Rime. More...

Files

file  rimeaddr.c
 
    Functions for manipulating Rime addresses

 
file  rimeaddr.h
 
    Header file for the Rime address representation

 

Functions

void rimeaddr_copy (rimeaddr_t *dest, const rimeaddr_t *from)
 Copy a Rime address. More...
 
int rimeaddr_cmp (const rimeaddr_t *addr1, const rimeaddr_t *addr2)
 Compare two Rime addresses. More...
 
void rimeaddr_set_node_addr (rimeaddr_t *addr)
 Set the address of the current node. More...
 

Variables

rimeaddr_t rimeaddr_node_addr
 The Rime address of the node. More...
 
rimeaddr_t rimeaddr_node_addr
 The Rime address of the node. More...
 
const rimeaddr_t rimeaddr_null
 The null Rime address. More...
 

Detailed Description

The rimeaddr module is an abstract representation of addresses in Rime.

Function Documentation

int rimeaddr_cmp ( const rimeaddr_t *  addr1,
const rimeaddr_t *  addr2 
)

Compare two Rime addresses.

Parameters
addr1The first address
addr2The second address
Returns
Non-zero if the addresses are the same, zero if they are different
        This function compares two Rime addresses and returns
        the result of the comparison. The function acts like
        the '==' operator and returns non-zero if the addresses
        are the same, and zero if the addresses are different.
Examples:
example-collect.c, example-multihop.c, example-runicast.c, and example-unicast.c.

Definition at line 69 of file rimeaddr.c.

Referenced by convergence_layer_is_blocked(), discovery_basic_is_neighbour(), discovery_basic_neighbour_found(), discovery_basic_refresh_neighbour(), discovery_ipnd_delete_neighbour(), discovery_ipnd_is_neighbour(), discovery_ipnd_refresh_neighbour(), mac_LowpanToEthernet(), neighbor_info_packet_received(), neighbor_info_packet_sent(), routing_epidemic_get_neighbour(), routing_flooding_blacklist_add(), routing_flooding_blacklist_delete(), routing_flooding_bundle_sent(), routing_flooding_forward_directly(), routing_flooding_forward_normal(), and sicslowmac_dataRequest().

void rimeaddr_copy ( rimeaddr_t *  dest,
const rimeaddr_t *  from 
)
void rimeaddr_set_node_addr ( rimeaddr_t *  addr)

Set the address of the current node.

Parameters
addrThe address
        This function sets the Rime address of the node.

Definition at line 81 of file rimeaddr.c.

References rimeaddr_copy(), and rimeaddr_node_addr.

Referenced by main().

Variable Documentation

rimeaddr_t rimeaddr_node_addr

The Rime address of the node.

This variable contains the Rime address of the node. This variable should not be changed directly; rather, the rimeaddr_set_node_addr() function should be used.

Examples:
example-announcement.c, example-collect.c, example-multihop.c, example-rucb.c, example-rudolph1.c, example-rudolph2.c, example-runicast.c, example-trickle.c, and example-unicast.c.

Definition at line 48 of file rimeaddr.c.

Referenced by abc_input(), abc_send(), broadcast_send(), ipolite_send(), main(), mesh_send(), rimeaddr_set_node_addr(), routing_epidemic_bundle_delivered_locally(), and routing_flooding_bundle_delivered_locally().

rimeaddr_t rimeaddr_node_addr

The Rime address of the node.

This variable contains the Rime address of the node. This variable should not be changed directly; rather, the rimeaddr_set_node_addr() function should be used.

Definition at line 48 of file rimeaddr.c.

Referenced by abc_input(), abc_send(), broadcast_send(), ipolite_send(), main(), mesh_send(), rimeaddr_set_node_addr(), routing_epidemic_bundle_delivered_locally(), and routing_flooding_bundle_delivered_locally().

const rimeaddr_t rimeaddr_null

The null Rime address.

This variable contains the null Rime address. The null address is used in route tables to indicate that the table entry is unused. Nodes with no configured address has the null address. Nodes with their node address set to the null address will have problems communicating with other nodes.

Examples:
example-collect.c.

Referenced by frame802154_parse(), mac_LowpanToEthernet(), neighbor_info_packet_received(), neighbor_info_packet_sent(), and sicslowmac_dataRequest().