add: assert(port < (flagset_len * 8));
context: void netcat_flag_set(unsigned short port, bool flag){  register char *p = flagset + (int) (port / 8);  register int offset = port % 8;  assert(flagset);  if (flag)    *p |= 1 << offset;  else    *p &= ~(1 << offset);}