summaryrefslogtreecommitdiffstats
path: root/extensions/libip6t_rt.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-09-01 14:22:19 +0200
committerPatrick McHardy <kaber@trash.net>2008-09-01 14:22:19 +0200
commitddac6c5bc636003d664d25c08ea3fe176565096c (patch)
treeb8630ca5953dfee6fb03d39ed52eff39617262b0 /extensions/libip6t_rt.c
parenta2a7f2b531cc582ab6cc3c2b73715ed1d58b9eab (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/libip6t_rt.c')
-rw-r--r--extensions/libip6t_rt.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/extensions/libip6t_rt.c b/extensions/libip6t_rt.c
index 50c94444..207f5154 100644
--- a/extensions/libip6t_rt.c
+++ b/extensions/libip6t_rt.c
@@ -11,10 +11,9 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
-
+
/*#define DEBUG 1*/
-/* Function which prints out usage message. */
static void rt_help(void)
{
printf(
@@ -136,7 +135,6 @@ parse_addresses(const char *addrstr, struct in6_addr *addrp)
return i;
}
-/* Initialize the match. */
static void rt_init(struct xt_entry_match *m)
{
struct ip6t_rt *rtinfo = (struct ip6t_rt *)m->data;
@@ -150,8 +148,6 @@ static void rt_init(struct xt_entry_match *m)
rtinfo->addrnr = 0;
}
-/* Function which parses command options; returns true if it
- ate an option */
static int rt_parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry, struct xt_entry_match **match)
{
@@ -264,7 +260,6 @@ print_addresses(unsigned int addrnr, struct in6_addr *addrp)
}
}
-/* Prints out the union ip6t_matchinfo. */
static void rt_print(const void *ip, const struct xt_entry_match *match,
int numeric)
{
@@ -291,7 +286,6 @@ static void rt_print(const void *ip, const struct xt_entry_match *match,
rtinfo->invflags & ~IP6T_RT_INV_MASK);
}
-/* Saves the union ip6t_matchinfo in parsable form to stdout. */
static void rt_save(const void *ip, const struct xt_entry_match *match)
{
const struct ip6t_rt *rtinfo = (struct ip6t_rt *)match->data;