Merge pull request #10627 from miri64/gnrc_ipv6_nib/fix/forward-to-pl

gnrc_ipv6_nib: don't ignore PL for route
This commit is contained in:
Martine Lenders 2020-03-24 21:49:56 +01:00 committed by GitHub
commit e47c8fa91c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -619,8 +619,7 @@ int _nib_get_route(const ipv6_addr_t *dst, gnrc_pktsnip_t *pkt,
(void *)pkt);
_nib_offl_entry_t *offl = _nib_offl_get_match(dst);
if ((offl == NULL) || (offl->mode == _PL)) {
/* give default router precedence over PLE */
if (offl == NULL) {
_nib_dr_entry_t *router = _nib_drl_get_dr();
if ((router == NULL) && (offl == NULL)) {