Skip to content

Commit

Permalink
[SQUASH ME] ng_ndp: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jun 3, 2015
1 parent 027e2eb commit ccfeb02
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sys/net/network_layer/ng_ndp/ng_ndp.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ void ng_ndp_retrans_nbr_sol(ng_ipv6_nc_t *nc_entry)
queue_node->data = NULL;
}

#ifdef MODULE_FIB
fib_remove_entry((uint8_t *)&(nc_entry->ipv6_addr), sizeof(ng_ipv6_addr_t));
#endif
ng_ipv6_addr_set_unspecified(&(nc_entry->ipv6_addr));
nc_entry->iface = KERNEL_PID_UNDEF;
nc_entry->flags = 0;
Expand Down Expand Up @@ -375,7 +378,7 @@ kernel_pid_t ng_ndp_next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_len,
* for later sends */
fib_add_entry(iface, (uint8_t *)dst, sizeof(ng_ipv6_addr_t), 0,
(uint8_t *)next_hop_ip, sizeof(ng_ipv6_addr_t), 0,
UINT32_MAX);
FIB_LIFETIME_NO_EXPIRE);
#endif
}
}
Expand All @@ -387,7 +390,7 @@ kernel_pid_t ng_ndp_next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_len,
* sends */
fib_add_entry(iface, (uint8_t *)dst, sizeof(ng_ipv6_addr_t), 0,
(uint8_t *)next_hop_ip, sizeof(ng_ipv6_addr_t), 0,
UINT32_MAX);
FIB_LIFETIME_NO_EXPIRE);
#endif
}

Expand Down

0 comments on commit ccfeb02

Please sign in to comment.