netmap: modifications to accomodate recent changes inside netmap