Original netmap framework code