Skip to content
Snippets Groups Projects
Commit 25b568e6 authored by Martine Lenders's avatar Martine Lenders
Browse files

ipv6_netif: fix prefix for address flags

Since NDP will introduce interface specific flags this naming might get
confusing
parent 05bcdd53
No related branches found
No related tags found
No related merge requests found
...@@ -77,8 +77,8 @@ extern "C" { ...@@ -77,8 +77,8 @@ extern "C" {
* RFC 4291, section 2.6 * RFC 4291, section 2.6
* </a> * </a>
*/ */
#define NG_IPV6_NETIF_FLAGS_UNICAST (0x00) /**< unicast address */ #define NG_IPV6_NETIF_ADDR_FLAGS_UNICAST (0x00) /**< unicast address */
#define NG_IPV6_NETIF_FLAGS_NON_UNICAST (0x01) /**< non-unicast address */ #define NG_IPV6_NETIF_ADDR_FLAGS_NON_UNICAST (0x01) /**< non-unicast address */
/** /**
* @} * @}
*/ */
...@@ -267,7 +267,7 @@ ng_ipv6_addr_t *ng_ipv6_netif_find_best_src_addr(kernel_pid_t pid, const ng_ipv6 ...@@ -267,7 +267,7 @@ ng_ipv6_addr_t *ng_ipv6_netif_find_best_src_addr(kernel_pid_t pid, const ng_ipv6
static inline bool ng_ipv6_netif_addr_is_non_unicast(const ng_ipv6_addr_t *addr) static inline bool ng_ipv6_netif_addr_is_non_unicast(const ng_ipv6_addr_t *addr)
{ {
return (bool)(container_of(addr, ng_ipv6_netif_addr_t, addr)->flags & return (bool)(container_of(addr, ng_ipv6_netif_addr_t, addr)->flags &
NG_IPV6_NETIF_FLAGS_NON_UNICAST); NG_IPV6_NETIF_ADDR_FLAGS_NON_UNICAST);
} }
......
...@@ -54,12 +54,12 @@ static int _add_addr_to_entry(ng_ipv6_netif_t *entry, const ng_ipv6_addr_t *addr ...@@ -54,12 +54,12 @@ static int _add_addr_to_entry(ng_ipv6_netif_t *entry, const ng_ipv6_addr_t *addr
entry->addrs[i].prefix_len = NG_IPV6_ADDR_BIT_LEN; entry->addrs[i].prefix_len = NG_IPV6_ADDR_BIT_LEN;
} }
entry->addrs[i].flags = NG_IPV6_NETIF_FLAGS_NON_UNICAST; entry->addrs[i].flags = NG_IPV6_NETIF_ADDR_FLAGS_NON_UNICAST;
} }
else { else {
entry->addrs[i].prefix_len = prefix_len; entry->addrs[i].prefix_len = prefix_len;
entry->addrs[i].flags = NG_IPV6_NETIF_FLAGS_UNICAST; entry->addrs[i].flags = NG_IPV6_NETIF_ADDR_FLAGS_UNICAST;
} }
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment