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_SAME.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_SAME.c')
-rw-r--r-- | extensions/libipt_SAME.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/extensions/libipt_SAME.c b/extensions/libipt_SAME.c index c0aef9f9..baf5fee5 100644 --- a/extensions/libipt_SAME.c +++ b/extensions/libipt_SAME.c @@ -10,7 +10,6 @@ /* For 64bit kernel / 32bit userspace */ #include <linux/netfilter_ipv4/ipt_SAME.h> -/* Function which prints out usage message. */ static void SAME_help(void) { printf( @@ -33,7 +32,6 @@ static const struct option SAME_opts[] = { { .name = NULL } }; -/* Initialize the target. */ static void SAME_init(struct xt_entry_target *t) { struct ipt_same_info *mr = (struct ipt_same_info *)t->data; @@ -81,8 +79,6 @@ parse_to(char *arg, struct ip_nat_range *range) #define IPT_SAME_OPT_NODST 0x02 #define IPT_SAME_OPT_RANDOM 0x04 -/* Function which parses command options; returns true if it - ate an option */ static int SAME_parse(int c, char **argv, int invert, unsigned int *flags, const void *entry, struct xt_entry_target **target) { @@ -132,7 +128,6 @@ static int SAME_parse(int c, char **argv, int invert, unsigned int *flags, return 1; } -/* Final check; need --to. */ static void SAME_check(unsigned int flags) { if (!(flags & IPT_SAME_OPT_TO)) @@ -140,7 +135,6 @@ static void SAME_check(unsigned int flags) "SAME needs --to"); } -/* Prints out the targinfo. */ static void SAME_print(const void *ip, const struct xt_entry_target *target, int numeric) { @@ -175,7 +169,6 @@ static void SAME_print(const void *ip, const struct xt_entry_target *target, printf("random "); } -/* Saves the union ipt_targinfo in parsable form to stdout. */ static void SAME_save(const void *ip, const struct xt_entry_target *target) { unsigned int count; |