Refactor lowpan.h