trickle: extract rpl dependend code out of trickle