> Hint: do not use integer types in C code for portable data structures. ntohl, etc are a mess. Just use arrays of bytes.
I don’t see how that helps much. If a developer forgets to call ntohl on multi-byte integer fields, I don’t trust them to correctly convert said integers to arrays of bytes, either.