summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_ah.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/libipt_ah.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/libipt_ah.c')
-rw-r--r--extensions/libipt_ah.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/extensions/libipt_ah.c b/extensions/libipt_ah.c
index 386c43f2..1f4f397f 100644
--- a/extensions/libipt_ah.c
+++ b/extensions/libipt_ah.c
@@ -7,8 +7,7 @@
#include <errno.h>
#include <iptables.h>
#include <linux/netfilter_ipv4/ipt_ah.h>
-
-/* Function which prints out usage message. */
+
static void ah_help(void)
{
printf(
@@ -64,7 +63,6 @@ parse_ah_spis(const char *spistring, u_int32_t *spis)
free(buffer);
}
-/* Initialize the match. */
static void ah_init(struct xt_entry_match *m)
{
struct ipt_ah *ahinfo = (struct ipt_ah *)m->data;
@@ -74,8 +72,6 @@ static void ah_init(struct xt_entry_match *m)
#define AH_SPI 0x01
-/* Function which parses command options; returns true if it
- ate an option */
static int ah_parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry, struct xt_entry_match **match)
{
@@ -120,7 +116,6 @@ print_spis(const char *name, u_int32_t min, u_int32_t max,
}
}
-/* Prints out the union ipt_matchinfo. */
static void ah_print(const void *ip, const struct xt_entry_match *match,
int numeric)
{
@@ -134,7 +129,6 @@ static void ah_print(const void *ip, const struct xt_entry_match *match,
ah->invflags & ~IPT_AH_INV_MASK);
}
-/* Saves the union ipt_matchinfo in parsable form to stdout. */
static void ah_save(const void *ip, const struct xt_entry_match *match)
{
const struct ipt_ah *ahinfo = (struct ipt_ah *)match->data;