diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-09-01 14:22:19 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-09-01 14:22:19 +0200 |
commit | ddac6c5bc636003d664d25c08ea3fe176565096c (patch) | |
tree | b8630ca5953dfee6fb03d39ed52eff39617262b0 /extensions/libipt_SNAT.c | |
parent | a2a7f2b531cc582ab6cc3c2b73715ed1d58b9eab (diff) |
src: Update comments
A number of comments are redundant, some outdated and others outright
wrong in their own way. Remove and fixup.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'extensions/libipt_SNAT.c')
-rw-r--r-- | extensions/libipt_SNAT.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/extensions/libipt_SNAT.c b/extensions/libipt_SNAT.c index 11536c61..b2a4925f 100644 --- a/extensions/libipt_SNAT.c +++ b/extensions/libipt_SNAT.c @@ -19,7 +19,6 @@ struct ipt_natinfo struct ip_nat_multi_range mr; }; -/* Function which prints out usage message. */ static void SNAT_help(void) { printf( @@ -134,8 +133,6 @@ parse_to(char *arg, int portok, struct ipt_natinfo *info) return &(append_range(info, &range)->t); } -/* Function which parses command options; returns true if it - ate an option */ static int SNAT_parse(int c, char **argv, int invert, unsigned int *flags, const void *e, struct xt_entry_target **target) { @@ -183,7 +180,6 @@ static int SNAT_parse(int c, char **argv, int invert, unsigned int *flags, } } -/* Final check; must have specfied --to-source. */ static void SNAT_check(unsigned int flags) { if (!(flags & IPT_SNAT_OPT_SOURCE)) @@ -211,7 +207,6 @@ static void print_range(const struct ip_nat_range *r) } } -/* Prints out the targinfo. */ static void SNAT_print(const void *ip, const struct xt_entry_target *target, int numeric) { @@ -227,7 +222,6 @@ static void SNAT_print(const void *ip, const struct xt_entry_target *target, } } -/* Saves the union ipt_targinfo in parsable form to stdout. */ static void SNAT_save(const void *ip, const struct xt_entry_target *target) { struct ipt_natinfo *info = (void *)target; |