INDEX_MASK
#define INDEX (INDEX_MASK << INDEX_SHIFT)
*idx = htonl(index & INDEX_MASK);
if (t->index & ~INDEX_MASK)
if (index & ~INDEX_MASK)