[Click] endianness

David Biot david.biot at scarlet.be
Tue Mar 20 07:02:26 EST 2007


Dear,

I'm writing an element to append a sequence number to the packet-data. I
would like to make sure this is as cross-platform as possible. Is there
a way to know what the endianness of the current machine is? Normally I
would use a function where I store a bit-array and cast this to a short,
but as I discovered, casting is not possible with click.

-- David Biot



More information about the click mailing list