|
|
|
@ -103,31 +103,30 @@ static void ts3init_get_puzzle_save(const void *ip, const struct xt_entry_match
@@ -103,31 +103,30 @@ static void ts3init_get_puzzle_save(const void *ip, const struct xt_entry_match
|
|
|
|
|
const struct xt_ts3init_get_puzzle_mtinfo *info = (const void *)match->data; |
|
|
|
|
if (info->common_options & CHK_COMMON_CLIENT_VERSION) |
|
|
|
|
{ |
|
|
|
|
printf("--min-client %u ", info->min_client_version + CLIENT_VERSION_OFFSET); |
|
|
|
|
printf(" --min-client %u", info->min_client_version + CLIENT_VERSION_OFFSET); |
|
|
|
|
} |
|
|
|
|
if (info->specific_options & CHK_GET_PUZZLE_CHECK_COOKIE) |
|
|
|
|
{ |
|
|
|
|
printf("--check-cookie "); |
|
|
|
|
printf(" --check-cookie"); |
|
|
|
|
} |
|
|
|
|
if (info->specific_options & CHK_GET_PUZZLE_RANDOM_SEED_FROM_ARGUMENT) |
|
|
|
|
{ |
|
|
|
|
printf("--random-seed "); |
|
|
|
|
printf(" --random-seed "); |
|
|
|
|
for (i = 0; i < RANDOM_SEED_LEN; i++) |
|
|
|
|
{ |
|
|
|
|
printf("%02X", info->random_seed[i]); |
|
|
|
|
} |
|
|
|
|
printf(" "); |
|
|
|
|
} |
|
|
|
|
if (info->specific_options & CHK_GET_PUZZLE_RANDOM_SEED_FROM_FILE) |
|
|
|
|
{ |
|
|
|
|
printf("--random-seed-file \"%s\" ", info->random_seed_path); |
|
|
|
|
printf(" --random-seed-file \"%s\"", info->random_seed_path); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void ts3init_get_puzzle_print(const void *ip, const struct xt_entry_match *match, |
|
|
|
|
int numeric) |
|
|
|
|
{ |
|
|
|
|
printf(" -m ts3init_get_puzzle "); |
|
|
|
|
printf(" -m ts3init_get_puzzle"); |
|
|
|
|
ts3init_get_puzzle_save(ip, match); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|