--- ../patch-o-matic-ng/patchlets/connlimit/iptables/extensions/libipt_connlimit.c.orig 2006-12-04 12:15:19.000000000 +0100 +++ ../patch-o-matic-ng/patchlets/connlimit/iptables/extensions/libipt_connlimit.c 2008-03-10 17:00:22.000000000 +0100 @@ -6,7 +6,6 @@ #include #include #include -#include #include /* Function which prints out usage message. */ @@ -21,18 +20,17 @@ } static struct option opts[] = { - { "connlimit-above", 1, 0, '1' }, - { "connlimit-mask", 1, 0, '2' }, - {0} + { .name = "connlimit-above", .has_arg = true, .flag = 0, .val = '1' }, + { .name = "connlimit-mask", .has_arg = true, .flag = 0, .val = '2' }, + { .name = 0 } }; /* Function which parses command options; returns true if it ate an option */ static int parse(int c, char **argv, int invert, unsigned int *flags, - const struct ipt_entry *entry, - unsigned int *nfcache, - struct ipt_entry_match **match) + const void *entry, + struct xt_entry_match **match) { struct ipt_connlimit_info *info = (struct ipt_connlimit_info*)(*match)->data; int i; @@ -94,8 +92,8 @@ /* Prints out the matchinfo. */ static void -print(const struct ipt_ip *ip, - const struct ipt_entry_match *match, +print(const void *ip, + const struct xt_entry_match *match, int numeric) { struct ipt_connlimit_info *info = (struct ipt_connlimit_info*)match->data; @@ -105,7 +103,7 @@ } /* Saves the matchinfo in parsable form to stdout. */ -static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match) +static void save(const void *ip, const struct xt_entry_match *match) { struct ipt_connlimit_info *info = (struct ipt_connlimit_info*)match->data;