X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibipt_pool.c;fp=extensions%2Flibipt_pool.c;h=0d6492038641219bb80eb1ba77094a658c8bc437;hb=98c90cbcc6f660e13f9e7878bbb80dfc9d03ceae;hp=082d76c25887ab01fbf6a8aca5130ce67354198d;hpb=72d9820b339aaeca54327f252e7443d37c4846d4;p=iptables.git diff --git a/extensions/libipt_pool.c b/extensions/libipt_pool.c index 082d76c..0d64920 100644 --- a/extensions/libipt_pool.c +++ b/extensions/libipt_pool.c @@ -43,8 +43,6 @@ init(struct ipt_entry_match *match, unsigned int *nfcache) info->src = IP_POOL_NONE; info->dst = IP_POOL_NONE; info->flags = 0; - /* Can't cache this - XXX */ - *nfcache |= NFC_UNKNOWN; } /* Function which parses command options; returns true if it ate an option */ @@ -122,20 +120,19 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match) ip_pool_get_name(buf, sizeof(buf), info->dst, 0)); } -static -struct iptables_match pool -= { NULL, - "pool", - IPTABLES_VERSION, - IPT_ALIGN(sizeof(struct ipt_pool_info)), - IPT_ALIGN(sizeof(struct ipt_pool_info)), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +static struct iptables_match pool = { + .next = NULL, + .name = "pool", + .version = IPTABLES_VERSION, + .size = IPT_ALIGN(sizeof(struct ipt_pool_info)), + .userspacesize = IPT_ALIGN(sizeof(struct ipt_pool_info)), + .help = &help, + .init = &init, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts }; void _init(void)