Hi Ben, > For what it's worth, FreeBSD/Darwin and Windows also put 4 bytes of > data in a IPV6_TCLASS cmsg. So whether or not it's "right", it's > consistent between three independent implementations.
oh, thank you, I don’t have any of these systems around at the moment, so checking them was tricky for me. So basically I should read an int in host endianness then (or keep the code I currently have that compares byte 0 and 3, using the one that’s not 0, if any). Great, thank you! After some minor porting work, it turns out that the current code does work on MidnightBSD (equivalent to FreeBSD 10.4) for IPv6. I guess I’ll keep ints then. bye, //mirabilos -- 15:41⎜<Lo-lan-do:#fusionforge> Somebody write a testsuite for helloworld :-)