diff options
author | A. van Schie <a.van.schie@quicknet.nl> | 2002-04-01 07:51:25 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2002-04-01 07:51:25 +0000 |
commit | 4b5566b718ccd52a11d5eabe1de9b1f4ff10ce41 (patch) | |
tree | f8af1ce8ead10d81db4e790b7253994ccfcfdeb8 /extensions/libipt_MASQUERADE.c | |
parent | 8780266bfc70b1f2e49e98232a1b1561e6322bcb (diff) |
fix bug in save() function of MASQUERADE target (A. van Schie)
Diffstat (limited to 'extensions/libipt_MASQUERADE.c')
-rw-r--r-- | extensions/libipt_MASQUERADE.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libipt_MASQUERADE.c b/extensions/libipt_MASQUERADE.c index a45285a9..cbf5ba1a 100644 --- a/extensions/libipt_MASQUERADE.c +++ b/extensions/libipt_MASQUERADE.c @@ -139,7 +139,7 @@ save(const struct ipt_ip *ip, const struct ipt_entry_target *target) struct ip_nat_range *r = &mr->range[0]; if (r->flags & IP_NAT_RANGE_PROTO_SPECIFIED) { - printf("%hu", ntohs(r->min.tcp.port)); + printf("--to-ports %hu", ntohs(r->min.tcp.port)); if (r->max.tcp.port != r->min.tcp.port) printf("-%hu", ntohs(r->max.tcp.port)); printf(" "); |