Skip to content

Commit

Permalink
#474 DAD not executed when receiving neighbor solicitation
Browse files Browse the repository at this point in the history
  • Loading branch information
roel0 committed Jul 28, 2017
1 parent e3019c8 commit ef97994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pico_ipv6_nd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ static int neigh_sol_process(struct pico_frame *f)
if (valid_lladdr < 0)
return -1; /* Malformed packet. */

if (f->dev->mode != LL_MODE_ETHERNET && !valid_lladdr && (0 == neigh_sol_detect_dad(f)))
if (!f->dev->mode && !valid_lladdr && (0 == neigh_sol_detect_dad(f)))
return 0;
#ifdef PICO_SUPPORT_6LOWPAN
else if (PICO_DEV_IS_6LOWPAN(f->dev)) {
Expand Down

0 comments on commit ef97994

Please sign in to comment.