Browse Source

fix spaces on iptables-save

pull/8/head
Stefan Schwarz 8 years ago
parent
commit
c58f565275
  1. 4
      src/libxt_TS3INIT_SET_COOKIE.c
  2. 6
      src/libxt_ts3init.c
  3. 4
      src/libxt_ts3init_get_cookie.c
  4. 8
      src/libxt_ts3init_get_puzzle.c

4
src/libxt_TS3INIT_SET_COOKIE.c

@ -85,11 +85,11 @@ static void ts3init_set_cookie_tg_save(const void *ip, const struct xt_entry_tar @@ -85,11 +85,11 @@ static void ts3init_set_cookie_tg_save(const void *ip, const struct xt_entry_tar
const struct xt_ts3init_set_cookie_tginfo *info = (const void *)target->data;
if (info->specific_options & TARGET_SET_COOKIE_ZERO_RANDOM_SEQUENCE)
{
printf("--zero-random-sequence ");
printf(" --zero-random-sequence ");
}
if (info->specific_options & TARGET_SET_COOKIE_RANDOM_SEED_FROM_ARGUMENT)
{
printf("--random-seed ");
printf(" --random-seed ");
for (i = 0; i < RANDOM_SEED_LEN; i++)
{
printf("%02X", info->random_seed[i]);

6
src/libxt_ts3init.c

@ -83,15 +83,15 @@ static void ts3init_save(const void *ip, const struct xt_entry_match *match) @@ -83,15 +83,15 @@ static void ts3init_save(const void *ip, const struct xt_entry_match *match)
const struct xt_ts3init_mtinfo *info = (const void *)match->data;
if (info->specific_options & CHK_TS3INIT_CLIENT)
{
printf("--client ");
printf(" --client ");
}
if (info->specific_options & CHK_TS3INIT_SERVER)
{
printf("--server ");
printf(" --server ");
}
if (info->specific_options & CHK_TS3INIT_COMMAND)
{
printf("--command %i ", (int)info->command);
printf(" --command %i ", (int)info->command);
}
}

4
src/libxt_ts3init_get_cookie.c

@ -79,11 +79,11 @@ static void ts3init_get_cookie_save(const void *ip, const struct xt_entry_match @@ -79,11 +79,11 @@ static void ts3init_get_cookie_save(const void *ip, const struct xt_entry_match
const struct xt_ts3init_get_cookie_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_COOKIE_CHECK_TIMESTAMP)
{
printf("--check-time %u ", info->max_utc_offset);
printf(" --check-time %u ", info->max_utc_offset);
}
}

8
src/libxt_ts3init_get_puzzle.c

@ -103,15 +103,15 @@ static void ts3init_get_puzzle_save(const void *ip, const struct xt_entry_match @@ -103,15 +103,15 @@ 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]);
@ -120,7 +120,7 @@ static void ts3init_get_puzzle_save(const void *ip, const struct xt_entry_match @@ -120,7 +120,7 @@ static void ts3init_get_puzzle_save(const void *ip, const struct xt_entry_match
}
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);
}
}

Loading…
Cancel
Save