summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_mac.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/libxt_mac.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/libxt_mac.c')
-rw-r--r--extensions/libxt_mac.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/extensions/libxt_mac.c b/extensions/libxt_mac.c
index bc91f0f4..2fe5e7b4 100644
--- a/extensions/libxt_mac.c
+++ b/extensions/libxt_mac.c
@@ -12,7 +12,6 @@
#include <xtables.h>
#include <linux/netfilter/xt_mac.h>
-/* Function which prints out usage message. */
static void mac_help(void)
{
printf(
@@ -50,8 +49,6 @@ parse_mac(const char *mac, struct xt_mac_info *info)
}
}
-/* Function which parses command options; returns true if it
- ate an option */
static int
mac_parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry, struct xt_entry_match **match)
@@ -84,7 +81,6 @@ static void print_mac(const unsigned char macaddress[ETH_ALEN])
printf(" ");
}
-/* Final check; must have specified --mac. */
static void mac_check(unsigned int flags)
{
if (!flags)
@@ -92,7 +88,6 @@ static void mac_check(unsigned int flags)
"You must specify `--mac-source'");
}
-/* Prints out the matchinfo. */
static void
mac_print(const void *ip, const struct xt_entry_match *match, int numeric)
{
@@ -105,7 +100,6 @@ mac_print(const void *ip, const struct xt_entry_match *match, int numeric)
print_mac(info->srcaddr);
}
-/* Saves the union ipt_matchinfo in parsable form to stdout. */
static void mac_save(const void *ip, const struct xt_entry_match *match)
{
const struct xt_mac_info *info = (void *)match->data;