Skip to contentSkip to conversation

ipt_osf: module revision fixup

PATCH In review Bill Rugolsky Jr. 3 participants 3 messages Jan 7, 2005 – Feb 1, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipt_osf: module revision fixup

Use C99 initializers to allow for new match revision field.

osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c renamed from osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c.revision +5 -8
@@ -83,14 +83,11 @@
 static unsigned long seq, ipt_osf_groups = 1;
 static struct sock *nts;
 
-static struct ipt_match osf_match = 
-{ 
-	{ NULL, NULL }, 
-	"osf", 
-	&match, 
-	&checkentry, 
-	NULL, 
-	THIS_MODULE 
+static struct ipt_match osf_match = { 
+	.name = "osf", 
+	.match = &match, 
+	.checkentry = &checkentry, 
+	.me = THIS_MODULE 
 };
 
 static void ipt_osf_nlsend(struct osf_finger *f, const struct sk_buff *sk)
#1 lore raw
Quoted 1 line

Use C99 initializers to allow for new match revision field.

I've applied your patch to my tree, netfilter team, please apply it to netfilter CVS, thank you.

osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c renamed from osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c.revision +5 -8
@@ -83,14 +83,11 @@
 static unsigned long seq, ipt_osf_groups = 1;
 static struct sock *nts;
 
-static struct ipt_match osf_match = 
-{ 
-	{ NULL, NULL }, 
-	"osf", 
-	&match, 
-	&checkentry, 
-	NULL, 
-	THIS_MODULE 
+static struct ipt_match osf_match = { 
+	.name = "osf", 
+	.match = &match, 
+	.checkentry = &checkentry, 
+	.me = THIS_MODULE 
 };
 
 static void ipt_osf_nlsend(struct osf_finger *f, const struct sk_buff *sk)

Evgeniy Polyakov

Only failure makes us experts. -- Theo de Raadt

#2 lore raw
Quoted 4 lines · Evgeniy Polyakov
Quoted 1 line

Use C99 initializers to allow for new match revision field.

I've applied your patch to my tree, netfilter team, please apply it to netfilter CVS, thank you.

It's now subversion, but applied anyway ;)

Thanks!

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie