Skip to content

Commit

Permalink
[ci skip] fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundogan committed Jan 30, 2016
1 parent 9db9025 commit d8ffc36
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sys/include/net/gnrc/ipv6/nc.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ extern "C" {
#define GNRC_IPV6_NC_STATE_MASK (0x07) /**< Mask for neighbor cache state */
#define GNRC_IPV6_NC_STATE_POS (0) /**< Shift of neighbor cache state */

#define GNRC_IPV6_NC_STATE_UNMANAGED (0x00) /**< The entry is not manage by NDP */

/**
* @brief The entry is unreachable
*
Expand All @@ -80,6 +78,7 @@ extern "C" {
#define GNRC_IPV6_NC_STATE_STALE (0x03) /**< The entry is stale */
#define GNRC_IPV6_NC_STATE_DELAY (0x04) /**< The entry was stale but packet was sent out */
#define GNRC_IPV6_NC_STATE_PROBE (0x05) /**< Periodic reachabality confirmation */
#define GNRC_IPV6_NC_STATE_UNMANAGED (0x06) /**< The entry is not manage by NDP */
#define GNRC_IPV6_NC_STATE_REACHABLE (0x07) /**< The entry is reachable */
/**
* @}
Expand All @@ -88,7 +87,6 @@ extern "C" {
#define GNRC_IPV6_NC_IS_ROUTER (0x08) /**< The neighbor is a router */

#define GNRC_IPV6_NC_TYPE_MASK (0x30) /**< Mask for neighbor cache state */
#define GNRC_IPV6_NC_TYPE_POS (4) /**< Shift of neighbor cache state */

/**
* @{
Expand Down Expand Up @@ -266,7 +264,7 @@ static inline uint8_t gnrc_ipv6_nc_get_type(const gnrc_ipv6_nc_t *entry)
*/
static inline bool gnrc_ipv6_nc_is_reachable(const gnrc_ipv6_nc_t *entry)
{
/* returns false if the state is unmanaged, unreachable, or incomplete */
/* returns false if the state is unreachable, or incomplete */
return (gnrc_ipv6_nc_get_state(entry) > GNRC_IPV6_NC_STATE_INCOMPLETE);
}

Expand Down

0 comments on commit d8ffc36

Please sign in to comment.