Merge pull request #987 from ioannisg/send-ns-in-tcpip_ipv6_output

Send the first NS attempt inside tcpip_ipv6_output()
This commit is contained in:
Simon Duquennoy 2015-09-28 13:29:04 +02:00
commit 1a6681a09d

View File

@ -660,7 +660,11 @@ tcpip_ipv6_output(void)
stimer_set(&nbr->sendns, uip_ds6_if.retrans_timer / 1000); stimer_set(&nbr->sendns, uip_ds6_if.retrans_timer / 1000);
nbr->nscount = 1; nbr->nscount = 1;
/* Send the first NS try from here (multicast destination IP address). */
} }
#else /* UIP_ND6_SEND_NA */
uip_len = 0;
return;
#endif /* UIP_ND6_SEND_NA */ #endif /* UIP_ND6_SEND_NA */
} else { } else {
#if UIP_ND6_SEND_NA #if UIP_ND6_SEND_NA
@ -707,7 +711,6 @@ tcpip_ipv6_output(void)
uip_clear_buf(); uip_clear_buf();
return; return;
} }
return;
} }
/* Multicast IP destination address. */ /* Multicast IP destination address. */
tcpip_output(NULL); tcpip_output(NULL);