adapted rpl_udp example for rpl-p2p