Send the first NS attempt inside tcpip_ipv6_output()

This commit is contained in:
Ioannis Glaropoulos 2015-03-09 19:41:25 +01:00
parent 2734c97234
commit 8552fb1ead

View file

@ -675,7 +675,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
@ -722,7 +726,6 @@ tcpip_ipv6_output(void)
uip_len = 0; uip_len = 0;
return; return;
} }
return;
} }
/* Multicast IP destination address. */ /* Multicast IP destination address. */
tcpip_output(NULL); tcpip_output(NULL);