Commit ecb6f85e authored by Jan Engelhardt's avatar Jan Engelhardt Committed by David S. Miller

[NETFILTER]: Use const in struct xt_match, xt_target, xt_table

Signed-off-by: default avatarJan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ca7c48ca
...@@ -214,7 +214,7 @@ struct xt_match ...@@ -214,7 +214,7 @@ struct xt_match
/* Free to use by each match */ /* Free to use by each match */
unsigned long data; unsigned long data;
char *table; const char *table;
unsigned int matchsize; unsigned int matchsize;
unsigned int compatsize; unsigned int compatsize;
unsigned int hooks; unsigned int hooks;
...@@ -261,7 +261,7 @@ struct xt_target ...@@ -261,7 +261,7 @@ struct xt_target
/* Set this to THIS_MODULE if you are a module, otherwise NULL */ /* Set this to THIS_MODULE if you are a module, otherwise NULL */
struct module *me; struct module *me;
char *table; const char *table;
unsigned int targetsize; unsigned int targetsize;
unsigned int compatsize; unsigned int compatsize;
unsigned int hooks; unsigned int hooks;
...@@ -277,7 +277,7 @@ struct xt_table ...@@ -277,7 +277,7 @@ struct xt_table
struct list_head list; struct list_head list;
/* A unique name... */ /* A unique name... */
char name[XT_TABLE_MAXNAMELEN]; const char name[XT_TABLE_MAXNAMELEN];
/* What hooks you will enter on */ /* What hooks you will enter on */
unsigned int valid_hooks; unsigned int valid_hooks;
......
...@@ -291,7 +291,7 @@ static void trace_packet(struct sk_buff *skb, ...@@ -291,7 +291,7 @@ static void trace_packet(struct sk_buff *skb,
unsigned int hook, unsigned int hook,
const struct net_device *in, const struct net_device *in,
const struct net_device *out, const struct net_device *out,
char *tablename, const char *tablename,
struct xt_table_info *private, struct xt_table_info *private,
struct ipt_entry *e) struct ipt_entry *e)
{ {
......
...@@ -320,7 +320,7 @@ static void trace_packet(struct sk_buff *skb, ...@@ -320,7 +320,7 @@ static void trace_packet(struct sk_buff *skb,
unsigned int hook, unsigned int hook,
const struct net_device *in, const struct net_device *in,
const struct net_device *out, const struct net_device *out,
char *tablename, const char *tablename,
struct xt_table_info *private, struct xt_table_info *private,
struct ip6t_entry *e) struct ip6t_entry *e)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment