From c92407572213c693c4d492180f9cdd0be66b486c Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Sat, 23 Aug 2014 12:58:35 +0200 Subject: [PATCH] sixlowpan: documented internal is_our_address() --- sys/net/network_layer/sixlowpan/ip.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys/net/network_layer/sixlowpan/ip.c b/sys/net/network_layer/sixlowpan/ip.c index df06945fd4f3..1dc4e9e76dfa 100644 --- a/sys/net/network_layer/sixlowpan/ip.c +++ b/sys/net/network_layer/sixlowpan/ip.c @@ -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;