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/libip6t_hbh.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'extensions/libip6t_hbh.c') diff --git a/extensions/libip6t_hbh.c b/extensions/libip6t_hbh.c index 6492f9f4..d981f66f 100644 --- a/extensions/libip6t_hbh.c +++ b/extensions/libip6t_hbh.c @@ -1,4 +1,4 @@ -/* Shared library add-on to ip6tables to add Hop-by-Hop and Dst headers support. */ +/* Shared library add-on to ip6tables to add Hop-by-Hop header support. */ #include #include #include @@ -11,10 +11,9 @@ #include #include #include - + #define DEBUG 0 -/* Function which prints out usage message. */ static void hbh_help(void) { printf( @@ -102,7 +101,6 @@ parse_options(const char *optsstr, u_int16_t *opts) return i; } -/* Initialize the match. */ static void hbh_init(struct xt_entry_match *m) { struct ip6t_opts *optinfo = (struct ip6t_opts *)m->data; @@ -113,8 +111,6 @@ static void hbh_init(struct xt_entry_match *m) optinfo->optsnr = 0; } -/* Function which parses command options; returns true if it - ate an option */ static int hbh_parse(int c, char **argv, int invert, unsigned int *flags, const void *entry, struct xt_entry_match **match) { @@ -175,7 +171,6 @@ print_options(unsigned int optsnr, u_int16_t *optsp) } } -/* Prints out the union ip6t_matchinfo. */ static void hbh_print(const void *ip, const struct xt_entry_match *match, int numeric) { @@ -196,7 +191,6 @@ static void hbh_print(const void *ip, const struct xt_entry_match *match, optinfo->invflags & ~IP6T_OPTS_INV_MASK); } -/* Saves the union ip6t_matchinfo in parsable form to stdout. */ static void hbh_save(const void *ip, const struct xt_entry_match *match) { const struct ip6t_opts *optinfo = (struct ip6t_opts *)match->data; -- cgit v1.2.3