Hacker News new | ask | show | jobs
by godojo 3750 days ago
I would assume endianness to be an issue in such code. Where in these structs would the order need to be validated? Or am I wrong in thinking that the byte order matters for x86 targeted c network code?
1 comments

x86 is little endian. The internet protocols are mostly big endian. It matters.

The good part is you catch your mistakes. Developing networking code on a big endian machine can get you a surprise later.