Skip to content

Commit

Permalink
sixlowpan: documented internal is_our_address()
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegHahm committed Sep 10, 2014
1 parent 1125457 commit c924075
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion sys/net/network_layer/sixlowpan/ip.c
Expand Up @@ -307,7 +307,17 @@ uint8_t ipv6_get_addr_match(const ipv6_addr_t *src,
return val;
}

int is_our_address(ipv6_addr_t *addr)
/**
* @brief Check if the given IPv6 address is assigned to any configured
* interface
*
* @param[in] addr The IPv6 address to check
*
* @return 1 If *addr* is assigned to at least one interface
* @return 0 If *addr* is not assigned to any interface
* @return -1 If no IPv6 address is configured to any interface
*/
static int is_our_address(ipv6_addr_t *addr)
{
ipv6_net_if_ext_t *net_if_ext;
ipv6_net_if_addr_t *myaddr;
Expand Down

0 comments on commit c924075

Please sign in to comment.