net_if: alternative approach for swapping the byte order