aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-03-18 05:30:44 -0400
committerJan Engelhardt <jengelh@medozas.de>2010-03-18 09:20:07 -0400
commit16599786ae5e9d5f936706d2202d8c7224cd51ed (patch)
tree13420246d8f2ae6c6d232425f598244f814c779f
parentaa5fa3185791aac71c9172d4fda3e8729164b5d1 (diff)
netfilter: update documentation fields of x_tables.h
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r--include/linux/netfilter/x_tables.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h
index 84c7c928e9eb..c68ff82366b6 100644
--- a/include/linux/netfilter/x_tables.h
+++ b/include/linux/netfilter/x_tables.h
@@ -197,6 +197,7 @@ struct xt_counters_info {
197 * @family: Actual NFPROTO_* through which the function is invoked 197 * @family: Actual NFPROTO_* through which the function is invoked
198 * (helpful when match->family == NFPROTO_UNSPEC) 198 * (helpful when match->family == NFPROTO_UNSPEC)
199 * @hotdrop: drop packet if we had inspection problems 199 * @hotdrop: drop packet if we had inspection problems
200 * Network namespace obtainable using dev_net(in/out)
200 */ 201 */
201struct xt_match_param { 202struct xt_match_param {
202 const struct net_device *in, *out; 203 const struct net_device *in, *out;
@@ -213,12 +214,14 @@ struct xt_match_param {
213 * struct xt_mtchk_param - parameters for match extensions' 214 * struct xt_mtchk_param - parameters for match extensions'
214 * checkentry functions 215 * checkentry functions
215 * 216 *
217 * @net: network namespace through which the check was invoked
216 * @table: table the rule is tried to be inserted into 218 * @table: table the rule is tried to be inserted into
217 * @entryinfo: the family-specific rule data 219 * @entryinfo: the family-specific rule data
218 * (struct ipt_ip, ip6t_ip, ebt_entry) 220 * (struct ipt_ip, ip6t_ip, arpt_arp or (note) ebt_entry)
219 * @match: struct xt_match through which this function was invoked 221 * @match: struct xt_match through which this function was invoked
220 * @matchinfo: per-match data 222 * @matchinfo: per-match data
221 * @hook_mask: via which hooks the new rule is reachable 223 * @hook_mask: via which hooks the new rule is reachable
224 * Other fields as above.
222 */ 225 */
223struct xt_mtchk_param { 226struct xt_mtchk_param {
224 struct net *net; 227 struct net *net;
@@ -230,7 +233,10 @@ struct xt_mtchk_param {
230 u_int8_t family; 233 u_int8_t family;
231}; 234};
232 235
233/* Match destructor parameters */ 236/**
237 * struct xt_mdtor_param - match destructor parameters
238 * Fields as above.
239 */
234struct xt_mtdtor_param { 240struct xt_mtdtor_param {
235 struct net *net; 241 struct net *net;
236 const struct xt_match *match; 242 const struct xt_match *match;