fix recv_rpl_dio, missing return, refactor

fixes a rpl segfault