[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: endianness guide

Eugen Dedu wrote:

It's simple, you do not need a document. All that you need to do is to use hton[l|s] macros in ALL data (more precisely, headers, which are processed by machines of both endianess) you pass to Internet.

I have a kernel module for a wireless device which freezes my kernel when I put ethx up, could it be an endianness matter? Does endianness involves other pieces of code?

For hton[l|s], maybe this document helps: http://www.ecst.csuchico.edu/~beej/guide/net/bgnet.pdf

I'll look at it


Reply to: