Thread (17 messages) flat view 17 messages, 4 authors, 2007-10-17

Re: [PATCH 2/2] Interface group match - netfilter part

From: Jan Engelhardt <hidden>
Date: 2007-10-16 14:46:43
Also in: netfilter-devel

On Oct 16 2007 10:30, Patrick McHardy wrote:
quoted
+static int match(const struct sk_buff *skb,
Potential symbol clash, name it ifgroup_match() for example.
quoted
+      const struct net_device *in,
+      const struct net_device *out,
+      const struct xt_match *match,
+      const void *matchinfo,
+      int offset,
+      unsigned int protoff,
+      int *hotdrop)
2.6.23 => bool ifgroup_match(... bool *hotdrop)
quoted
+static struct xt_match ifgroup_match = {
+	.name		= "ifgroup",
+	.match		= match,
+	.matchsize	= sizeof(struct xt_ifgroup_info),
+	.family		= AF_INET,
+	.me		= THIS_MODULE,
+};
+
+static struct xt_match ifgroup6_match = {
+	.name		= "ifgroup",
+	.match		= match,
+	.matchsize	= sizeof(struct xt_ifgroup_info),
+	.family		= AF_INET6,
+	.me		= THIS_MODULE,
+};
__read_mostly
And actually, an array,

	static struct xt_match ifgroup_match[] __read_mostly = {
		...
	}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help