X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibipt_IPMARK.c;h=3e0942de4d8c97064518776b3dca4d19ae183050;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=ae335c44a913087b56825f64ff19ffe787ab2224;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libipt_IPMARK.c b/extensions/libipt_IPMARK.c index ae335c4..3e0942d 100644 --- a/extensions/libipt_IPMARK.c +++ b/extensions/libipt_IPMARK.c @@ -53,7 +53,6 @@ init(struct ipt_entry_target *t, unsigned int *nfcache) ipmarkinfo->andmask=0xffffffff; ipmarkinfo->ormask=0; - *nfcache |= NFC_UNKNOWN; } /* Function which parses command options; returns true if it @@ -148,20 +147,19 @@ save(const struct ipt_ip *ip, const struct ipt_entry_target *target) printf("--or-mask 0x%lx ", ipmarkinfo->ormask); } -static -struct iptables_target ipmark -= { NULL, - "IPMARK", - IPTABLES_VERSION, - IPT_ALIGN(sizeof(struct ipt_ipmark_target_info)), - IPT_ALIGN(sizeof(struct ipt_ipmark_target_info)), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +static struct iptables_target ipmark = { + .next = NULL, + .name = "IPMARK", + .version = IPTABLES_VERSION, + .size = IPT_ALIGN(sizeof(struct ipt_ipmark_target_info)), + .userspacesize = IPT_ALIGN(sizeof(struct ipt_ipmark_target_info)), + .help = &help, + .init = &init, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts }; void _init(void)