p1212_validate_offset
if (p1212_validate_offset(val, mask)) {
static int p1212_validate_offset(u_int16_t, u_int32_t);