Re:Let's code a TCP/IP stack, 1: Ethernet and ARP
by godojo on Sunday March 06, 2016 @05:35PM
(#11235912)
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?
[ Parent
| on HN ]
Re:Let's code a TCP/IP stack, 1: Ethernet and ARP
by jws on Sunday March 06, 2016 @05:38PM
(#11235927)
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.