Use no metric container when having MRHOF with ETX, as specified in RFC6719. Renamed rpl-of-etx to rpl-mrhof.
This commit is contained in:
parent
ad34b714cd
commit
defcc639ce
10 changed files with 43 additions and 19 deletions
|
@ -311,7 +311,9 @@ dio_input(void)
|
|||
dio.mc.prec = buffer[i + 4] & 0xf;
|
||||
dio.mc.length = buffer[i + 5];
|
||||
|
||||
if(dio.mc.type == RPL_DAG_MC_ETX) {
|
||||
if(dio.mc.type == RPL_DAG_MC_NONE) {
|
||||
/* No metric container: do nothing */
|
||||
} else if(dio.mc.type == RPL_DAG_MC_ETX) {
|
||||
dio.mc.obj.etx = get16(buffer, i + 6);
|
||||
|
||||
PRINTF("RPL: DAG MC: type %u, flags %u, aggr %u, prec %u, length %u, ETX %u\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue