ols: Fix endianness problems in protocol.