hi!
Please review:
https://code.illumos.org/c/illumos-gate/+/3727
as taking address of buf will allow compiler to check the buffer size, use offsetof() instead. So the result is the same and compiler is happy too (for now).
thanks,
toomas