4 ms·
Why is this listed under falsehood? "Bytes must be "swapped" from the network byte-order to the host CPU byte-order." Don't PowerPC and Sparc hardware require
by bogomipz 10y ago
Why is this listed under falsehood?
"Bytes must be "swapped" from the network byte-order to the host CPU byte-order."
Don't PowerPC and Sparc hardware require byte swapping(depending on what endian mode they are in)? Or am I misreading this?
- angry_octet 10y agoWell, NBO is big endian and PPC/Sparc/MIPS were usually BE in servers, now in routers and TVs, and LE in printers... Though POWER8 switched to LE. So you can (and I have) write programs for these BE systems that completely neglect to use swizzling. You will also see code that doesn't use the swizzling macros (htons, ntohs, etc) because they 'know' the packets need to be swizzled and they do it always, when they shouldn't on some architectures.