Netif fix byteorder

This PR proposes two possible solutions. Please choose one.