From ddac6c5bc636003d664d25c08ea3fe176565096c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 1 Sep 2008 14:22:19 +0200 Subject: 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 Signed-off-by: Patrick McHardy --- extensions/libipt_icmp.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'extensions/libipt_icmp.c') diff --git a/extensions/libipt_icmp.c b/extensions/libipt_icmp.c index f57503a8..8faf66f6 100644 --- a/extensions/libipt_icmp.c +++ b/extensions/libipt_icmp.c @@ -97,7 +97,6 @@ print_icmptypes(void) printf("\n"); } -/* Function which prints out usage message. */ static void icmp_help(void) { printf( @@ -165,7 +164,6 @@ parse_icmp(const char *icmptype, u_int8_t *type, u_int8_t code[]) } } -/* Initialize the match. */ static void icmp_init(struct xt_entry_match *m) { struct ipt_icmp *icmpinfo = (struct ipt_icmp *)m->data; @@ -174,8 +172,6 @@ static void icmp_init(struct xt_entry_match *m) icmpinfo->code[1] = 0xFF; } -/* Function which parses command options; returns true if it - ate an option */ static int icmp_parse(int c, char **argv, int invert, unsigned int *flags, const void *entry, struct xt_entry_match **match) { @@ -238,7 +234,6 @@ static void print_icmptype(u_int8_t type, printf(" codes %u-%u ", code_min, code_max); } -/* Prints out the union ipt_matchinfo. */ static void icmp_print(const void *ip, const struct xt_entry_match *match, int numeric) { @@ -254,7 +249,6 @@ static void icmp_print(const void *ip, const struct xt_entry_match *match, icmp->invflags & ~IPT_ICMP_INV); } -/* Saves the match in parsable form to stdout. */ static void icmp_save(const void *ip, const struct xt_entry_match *match) { const struct ipt_icmp *icmp = (struct ipt_icmp *)match->data; -- cgit v1.2.3