diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-04-15 11:48:25 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-04-15 14:01:06 +0200 |
commit | 8b7c64d6ba156a99008fcd810cba874c73294333 (patch) | |
tree | 47489e2ac7ae083087ec7f0675f1c2e5fc2b4d7a /extensions/libipt_realm.c | |
parent | ddcb288316c942a5b8de33edd5f03318db8906b7 (diff) |
Remove old functions, constants
Diffstat (limited to 'extensions/libipt_realm.c')
-rw-r--r-- | extensions/libipt_realm.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/extensions/libipt_realm.c b/extensions/libipt_realm.c index 7026fc23..7fdc2930 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); } |