X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibipt_BALANCE.c;h=6d6392f895fc4cdb55195386f2e8953b173d096d;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=7f0b91698ea00a148f9b95edc118fc03f0daddb9;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libipt_BALANCE.c b/extensions/libipt_BALANCE.c index 7f0b916..6d6392f 100644 --- a/extensions/libipt_BALANCE.c +++ b/extensions/libipt_BALANCE.c @@ -35,8 +35,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 range of IPs */ @@ -131,20 +129,19 @@ save(const struct ipt_ip *ip, const struct ipt_entry_target *target) printf("-%s ", addr_to_dotted(&a)); } -static -struct iptables_target balance -= { NULL, - "BALANCE", - 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 balance = { + .next = NULL, + .name = "BALANCE", + .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)