Skip to content

Commit

Permalink
Fix spacing in listing/saving of iptables module rules
Browse files Browse the repository at this point in the history
Signed-off-by: Tillmann Karras <tillmann@selfnet.de>
Signed-off-by: Jesper Dangaard Brouer <netoptimizer@brouer.com>
  • Loading branch information
Tilka authored and netoptimizer committed Jan 6, 2014
1 parent 60e505e commit dd0cd24
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions iptables-module/libxt_mpeg2ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static void mpeg2ts_mt_print(const void *entry,
printf(" match-drop");

if (info->flags & XT_MPEG2TS_MAX_STREAMS)
printf(" max-streams:%u ", info->cfg.max);
printf(" max-streams:%u", info->cfg.max);
}

static void mpeg2ts_mt_save(const void *entry,
Expand All @@ -191,16 +191,16 @@ static void mpeg2ts_mt_save(const void *entry,

/* We need to handle --name, --drop-detect, and --max-streams. */
if (info->flags & XT_MPEG2TS_PARAM_NAME)
printf("--name \"%s\" ", info->rule_name);
printf(" --name \"%s\"", info->rule_name);

if (!(info->flags & XT_MPEG2TS_DETECT_DROP))
printf("! --drop-detect ");
printf(" ! --drop-detect");

if (info->flags & XT_MPEG2TS_MATCH_DROP)
printf("--match-drop ");
printf(" --match-drop");

if (info->flags & XT_MPEG2TS_MAX_STREAMS)
printf("--max-streams %u ", info->cfg.max);
printf(" --max-streams %u", info->cfg.max);

}

Expand Down

0 comments on commit dd0cd24

Please sign in to comment.