diff options
author | Patrick McHardy <kaber@trash.net> | 2007-09-28 17:15:45 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:53:30 -0400 |
commit | 7c8d4cb4198d199e65a6ced8c81f71e3ac3f4cfc (patch) | |
tree | f931048ba1e765b8a6189cd8d16d20e514f1fc44 /include | |
parent | 169e36742572934f5d846cfa5f9d76e72d505db4 (diff) |
[NETFILTER]: nfnetlink: make subsystem and callbacks const
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter/nfnetlink.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h index 0f9311df1559..e32418bcc661 100644 --- a/include/linux/netfilter/nfnetlink.h +++ b/include/linux/netfilter/nfnetlink.h | |||
@@ -118,9 +118,9 @@ struct nfnl_callback | |||
118 | struct nfnetlink_subsystem | 118 | struct nfnetlink_subsystem |
119 | { | 119 | { |
120 | const char *name; | 120 | const char *name; |
121 | __u8 subsys_id; /* nfnetlink subsystem ID */ | 121 | __u8 subsys_id; /* nfnetlink subsystem ID */ |
122 | __u8 cb_count; /* number of callbacks */ | 122 | __u8 cb_count; /* number of callbacks */ |
123 | struct nfnl_callback *cb; /* callback for individual types */ | 123 | const struct nfnl_callback *cb; /* callback for individual types */ |
124 | }; | 124 | }; |
125 | 125 | ||
126 | extern void __nfa_fill(struct sk_buff *skb, int attrtype, | 126 | extern void __nfa_fill(struct sk_buff *skb, int attrtype, |
@@ -129,8 +129,8 @@ extern void __nfa_fill(struct sk_buff *skb, int attrtype, | |||
129 | ({ if (skb_tailroom(skb) < (int)NFA_SPACE(attrlen)) goto nfattr_failure; \ | 129 | ({ if (skb_tailroom(skb) < (int)NFA_SPACE(attrlen)) goto nfattr_failure; \ |
130 | __nfa_fill(skb, attrtype, attrlen, data); }) | 130 | __nfa_fill(skb, attrtype, attrlen, data); }) |
131 | 131 | ||
132 | extern int nfnetlink_subsys_register(struct nfnetlink_subsystem *n); | 132 | extern int nfnetlink_subsys_register(const struct nfnetlink_subsystem *n); |
133 | extern int nfnetlink_subsys_unregister(struct nfnetlink_subsystem *n); | 133 | extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n); |
134 | 134 | ||
135 | extern void nfattr_parse(struct nfattr *tb[], int maxattr, | 135 | extern void nfattr_parse(struct nfattr *tb[], int maxattr, |
136 | struct nfattr *nfa, int len); | 136 | struct nfattr *nfa, int len); |