Masked clientflag so that it's in the proper range for u16 or u32