summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_realm.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-04-15 12:01:06 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-04-15 12:01:06 +0000
commit6cd49745931f42cfe2280bf78e483035c3c5e2e6 (patch)
tree47489e2ac7ae083087ec7f0675f1c2e5fc2b4d7a /extensions/libipt_realm.c
parentfbde4d9d1119908b37c9bb95886294fb6e2493e0 (diff)
[PATCH 08/10] Remove old functions, constants
Diffstat (limited to 'extensions/libipt_realm.c')
-rw-r--r--extensions/libipt_realm.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/extensions/libipt_realm.c b/extensions/libipt_realm.c
index 7026fc2..7fdc293 100644
--- a/extensions/libipt_realm.c
+++ b/extensions/libipt_realm.c
@@ -18,10 +18,9 @@
static void realm_help(void)
{
printf(
-"realm v%s options:\n"
+"realm match options:\n"
" --realm [!] value[/mask]\n"
-" Match realm\n"
-"\n", IPTABLES_VERSION);
+" Match realm\n");
}
static const struct option realm_opts[] = {
@@ -243,11 +242,12 @@ static void realm_check(unsigned int flags)
"realm match: You must specify `--realm'");
}
-static struct iptables_match realm_match = {
+static struct xtables_match realm_mt_reg = {
.name = "realm",
- .version = IPTABLES_VERSION,
- .size = IPT_ALIGN(sizeof(struct ipt_realm_info)),
- .userspacesize = IPT_ALIGN(sizeof(struct ipt_realm_info)),
+ .version = XTABLES_VERSION,
+ .family = PF_INET,
+ .size = XT_ALIGN(sizeof(struct ipt_realm_info)),
+ .userspacesize = XT_ALIGN(sizeof(struct ipt_realm_info)),
.help = realm_help,
.parse = realm_parse,
.final_check = realm_check,
@@ -258,7 +258,7 @@ static struct iptables_match realm_match = {
void _init(void)
{
- register_match(&realm_match);
+ xtables_register_match(&realm_mt_reg);
}