X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibipt_REJECT.c;h=f98233152c0c909f9ef5625f1280d541929e165c;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=8170edd806b88b98c8f09e10c67b5e28d66b8928;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libipt_REJECT.c b/extensions/libipt_REJECT.c index 8170edd..f982331 100644 --- a/extensions/libipt_REJECT.c +++ b/extensions/libipt_REJECT.c @@ -94,8 +94,6 @@ init(struct ipt_entry_target *t, unsigned int *nfcache) /* default */ reject->with = IPT_ICMP_PORT_UNREACHABLE; - /* Can't cache this */ - *nfcache |= NFC_UNKNOWN; } /* Function which parses command options; returns true if it @@ -170,20 +168,19 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_target *target) printf("--reject-with %s ", reject_table[i].name); } -static -struct iptables_target reject -= { NULL, - "REJECT", - IPTABLES_VERSION, - IPT_ALIGN(sizeof(struct ipt_reject_info)), - IPT_ALIGN(sizeof(struct ipt_reject_info)), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +static struct iptables_target reject = { + .next = NULL, + .name = "REJECT", + .version = IPTABLES_VERSION, + .size = IPT_ALIGN(sizeof(struct ipt_reject_info)), + .userspacesize = IPT_ALIGN(sizeof(struct ipt_reject_info)), + .help = &help, + .init = &init, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts }; void _init(void)