X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibipt_record_rpc.c;h=571d286bfe23f377cf9f9de5cbaf77fdbcde6fc4;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=819c8ef68e2d5b9a996bf230fd5ca6f0a3dab5ca;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libipt_record_rpc.c b/extensions/libipt_record_rpc.c index 819c8ef..571d286 100644 --- a/extensions/libipt_record_rpc.c +++ b/extensions/libipt_record_rpc.c @@ -16,14 +16,6 @@ static struct option opts[] = { {0} }; -static void -init(struct ipt_entry_match *m, unsigned int *nfcache) -{ - /* Can't cache this. */ - *nfcache |= NFC_UNKNOWN; -} - - /* Function which parses command options; returns true if it ate an option */ static int @@ -53,19 +45,18 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match) } static -struct iptables_match record_rpc -= { NULL, - "record_rpc", - IPTABLES_VERSION, - IPT_ALIGN(0), - IPT_ALIGN(0), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +struct iptables_match record_rpc = { + .next = NULL, + .name = "record_rpc", + .version = IPTABLES_VERSION, + .size = IPT_ALIGN(0), + .userspacesize = IPT_ALIGN(0), + .help = &help, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts }; void _init(void)