[PATCH] ipt_time: module revision fixup

Bill Rugolsky Jr. brugolsky at telemetry-investments.com
Fri Jan 7 03:21:17 CET 2005


Use C99 initializers to allow for new match revision field.
Update function parameter list to match the corresponding function prototype.

Signed-off-by: Bill Rugolsky <brugolsky at telemetry-investments.com>

--- patch-o-matic-ng/time/linux/net/ipv4/netfilter/ipt_time.c.revision	2004-11-24 10:19:15.000000000 -0500
+++ patch-o-matic-ng/time/linux/net/ipv4/netfilter/ipt_time.c	2005-01-06 20:36:30.000000000 -0500
@@ -48,8 +48,6 @@
       const struct net_device *out,
       const void *matchinfo,
       int offset,
-      const void *hdr,
-      u_int16_t datalen,
       int *hotdrop)
 {
 	const struct ipt_time_info *info = matchinfo;   /* match info for rule */
@@ -124,8 +122,12 @@
 	return 1;
 }
 
-static struct ipt_match time_match
-= { { NULL, NULL }, "time", &match, &checkentry, NULL, THIS_MODULE };
+static struct ipt_match time_match = {
+	.name = "time",
+	.match = &match,
+	.checkentry = &checkentry,
+	.me = THIS_MODULE
+};
 
 static int __init init(void)
 {



More information about the netfilter-devel mailing list