Contiki customized to integrate with ns-3