Small fixes to networking files
1. Added #include header 2. Fixed #defines that weren't updated 3. Small change to comment that now points to correct RFC section
This commit is contained in:
parent
55686d7ca2
commit
bc762b6dd6
@ -693,7 +693,7 @@ tcpip_ipv6_output(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* Send in parallel if we are running NUD (nbc state is either STALE,
|
/* Send in parallel if we are running NUD (nbc state is either STALE,
|
||||||
DELAY, or PROBE). See RFC 4861, section 7.7.3 on node behavior. */
|
DELAY, or PROBE). See RFC 4861, section 7.3.3 on node behavior. */
|
||||||
if(nbr->state == NBR_STALE) {
|
if(nbr->state == NBR_STALE) {
|
||||||
nbr->state = NBR_DELAY;
|
nbr->state = NBR_DELAY;
|
||||||
stimer_set(&nbr->reachable, UIP_ND6_DELAY_FIRST_PROBE_TIME);
|
stimer_set(&nbr->reachable, UIP_ND6_DELAY_FIRST_PROBE_TIME);
|
||||||
|
@ -205,8 +205,9 @@ uip_ds6_link_neighbor_callback(int status, int numtx)
|
|||||||
uip_ds6_nbr_t *nbr;
|
uip_ds6_nbr_t *nbr;
|
||||||
nbr = uip_ds6_nbr_ll_lookup((uip_lladdr_t *)dest);
|
nbr = uip_ds6_nbr_ll_lookup((uip_lladdr_t *)dest);
|
||||||
if(nbr != NULL &&
|
if(nbr != NULL &&
|
||||||
(nbr->state == STALE || nbr->state == DELAY || nbr->state == PROBE)) {
|
(nbr->state == NBR_STALE || nbr->state == NBR_DELAY ||
|
||||||
nbr->state = REACHABLE;
|
nbr->state == NBR_PROBE)) {
|
||||||
|
nbr->state = NBR_REACHABLE;
|
||||||
stimer_set(&nbr->reachable, UIP_ND6_REACHABLE_TIME / 1000);
|
stimer_set(&nbr->reachable, UIP_ND6_REACHABLE_TIME / 1000);
|
||||||
PRINTF("uip-ds6-neighbor : received a link layer ACK : ");
|
PRINTF("uip-ds6-neighbor : received a link layer ACK : ");
|
||||||
PRINTLLADDR((uip_lladdr_t *)dest);
|
PRINTLLADDR((uip_lladdr_t *)dest);
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
#ifndef UIP_DS6_ROUTE_H
|
#ifndef UIP_DS6_ROUTE_H
|
||||||
#define UIP_DS6_ROUTE_H
|
#define UIP_DS6_ROUTE_H
|
||||||
|
|
||||||
|
#include "sys/stimer.h"
|
||||||
#include "lib/list.h"
|
#include "lib/list.h"
|
||||||
|
|
||||||
void uip_ds6_route_init(void);
|
void uip_ds6_route_init(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user