X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibipt_NETLINK.c;h=403c4139d7877a9ec9707b984043fcf861caaacf;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=9e71990365880beacc050dc70502c53706132e38;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libipt_NETLINK.c b/extensions/libipt_NETLINK.c index 9e71990..403c413 100644 --- a/extensions/libipt_NETLINK.c +++ b/extensions/libipt_NETLINK.c @@ -32,7 +32,6 @@ static void init(struct ipt_entry_target *t, unsigned int *nfcache) nld->flags=0; - *nfcache |= NFC_UNKNOWN; } /* Parse command options */ @@ -136,19 +135,19 @@ print(const struct ipt_ip *ip, printf("nlsize %i ", nld->size); } -static -struct iptables_target netlink = { NULL, - "NETLINK", - IPTABLES_VERSION, - IPT_ALIGN(sizeof(struct ipt_nldata)), - IPT_ALIGN(sizeof(struct ipt_nldata)), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +static struct iptables_target netlink = { + .next = NULL, + .name = "NETLINK", + .version = IPTABLES_VERSION, + .size = IPT_ALIGN(sizeof(struct ipt_nldata)), + .userspacesize = IPT_ALIGN(sizeof(struct ipt_nldata)), + .help = &help, + .init = &init, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts }; void _init(void)