X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibipt_NETMAP.c;h=a39c731e0b075092b770377ba6283f65bd213d7a;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=a45acb90015f8ff3d6317865a108536d767b8ef0;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libipt_NETMAP.c b/extensions/libipt_NETMAP.c index a45acb9..a39c731 100644 --- a/extensions/libipt_NETMAP.c +++ b/extensions/libipt_NETMAP.c @@ -63,8 +63,6 @@ init(struct ipt_entry_target *t, unsigned int *nfcache) /* Actually, it's 0, but it's ignored at the moment. */ mr->rangesize = 1; - /* Can't cache this */ - *nfcache |= NFC_UNKNOWN; } /* Parses network address */ @@ -179,20 +177,19 @@ save(const struct ipt_ip *ip, const struct ipt_entry_target *target) print(ip, target, 0); } -static -struct iptables_target target_module -= { NULL, - MODULENAME, - IPTABLES_VERSION, - IPT_ALIGN(sizeof(struct ip_nat_multi_range)), - IPT_ALIGN(sizeof(struct ip_nat_multi_range)), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +static struct iptables_target target_module = { + .next = NULL, + .name = MODULENAME, + .version = IPTABLES_VERSION, + .size = IPT_ALIGN(sizeof(struct ip_nat_multi_range)), + .userspacesize = IPT_ALIGN(sizeof(struct ip_nat_multi_range)), + .help = &help, + .init = &init, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts }; void _init(void)