37
37
38
38
#define XTABLES_VERSION_CODE 12
39
39
40
- /**
41
- * Select the format the input has to conform to, as well as the target type
40
+ /* Select the format the input has to conform to, as well as the target type
42
41
* (area pointed to with XTOPT_POINTER). Note that the storing is not always
43
- * uniform. @ cb->val will be populated with as much as there is space, i.e.
42
+ * uniform. cb->val will be populated with as much as there is space, i.e.
44
43
* exactly 2 items for ranges, but the target area can receive more values
45
- * (e.g. in case of ranges), or less values (e.g. % XTTYPE_HOSTMASK).
44
+ * (e.g. in case of ranges), or less values (e.g. XTTYPE_HOSTMASK).
46
45
*
47
- * % XTTYPE_NONE: option takes no argument
48
- * % XTTYPE_UINT*: standard integer
49
- * % XTTYPE_UINT*RC: colon-separated range of standard integers
50
- * % XTTYPE_DOUBLE: double-precision floating point number
51
- * % XTTYPE_STRING: arbitrary string
52
- * % XTTYPE_TOSMASK: 8-bit TOS value with optional mask
53
- * % XTTYPE_MARKMASK32: 32-bit mark with optional mask
54
- * % XTTYPE_SYSLOGLEVEL: syslog level by name or number
55
- * % XTTYPE_HOST: one host or address (ptr: union nf_inet_addr)
56
- * % XTTYPE_HOSTMASK: one host or address, with an optional prefix length
46
+ * XTTYPE_NONE: option takes no argument
47
+ * XTTYPE_UINT*: standard integer
48
+ * XTTYPE_UINT*RC: colon-separated range of standard integers
49
+ * XTTYPE_DOUBLE: double-precision floating point number
50
+ * XTTYPE_STRING: arbitrary string
51
+ * XTTYPE_TOSMASK: 8-bit TOS value with optional mask
52
+ * XTTYPE_MARKMASK32: 32-bit mark with optional mask
53
+ * XTTYPE_SYSLOGLEVEL: syslog level by name or number
54
+ * XTTYPE_HOST: one host or address (ptr: union nf_inet_addr)
55
+ * XTTYPE_HOSTMASK: one host or address, with an optional prefix length
57
56
* ptr: union nf_inet_addr; only host portion is stored
58
- * % XTTYPE_PROTOCOL: protocol number/name from /etc/protocols ptr: uint8_t
59
- * % XTTYPE_PORT: 16-bit port name or number (supports % XTOPT_NBO)
60
- * % XTTYPE_PORTRC: colon-separated port range (names acceptable),
61
- * (supports % XTOPT_NBO)
62
- * % XTTYPE_PLEN: prefix length
63
- * % XTTYPE_PLENMASK: prefix length (ptr: union nf_inet_addr)
64
- * % XTTYPE_ETHERMAC: Ethernet MAC address in hex form
57
+ * XTTYPE_PROTOCOL: protocol number/name from /etc/protocols ptr: uint8_t
58
+ * XTTYPE_PORT: 16-bit port name or number (supports XTOPT_NBO)
59
+ * XTTYPE_PORTRC: colon-separated port range (names acceptable),
60
+ * (supports XTOPT_NBO)
61
+ * XTTYPE_PLEN: prefix length
62
+ * XTTYPE_PLENMASK: prefix length (ptr: union nf_inet_addr)
63
+ * XTTYPE_ETHERMAC: Ethernet MAC address in hex form
65
64
*/
66
65
67
66
enum xt_option_type
@@ -127,17 +126,16 @@ struct xtables_globals
127
126
int (* compat_rev )(FAR const char * name , uint8_t rev , int opt );
128
127
};
129
128
130
- /**
131
- * @name: name of option
132
- * @type: type of input and validation method, see %XTTYPE_*
133
- * @id: unique number (within extension) for option, 0-31
134
- * @excl: bitmask of flags that cannot be used with this option
135
- * @also: bitmask of flags that must be used with this option
136
- * @flags: bitmask of option flags, see %XTOPT_*
137
- * @ptroff: offset into private structure for member
138
- * @size: size of the item pointed to by @ptroff; this is a safeguard
139
- * @min: lowest allowed value (for singular integral types)
140
- * @max: highest allowed value (for singular integral types)
129
+ /* name: name of option
130
+ * type: type of input and validation method, see XTTYPE_*
131
+ * id: unique number (within extension) for option, 0-31
132
+ * excl: bitmask of flags that cannot be used with this option
133
+ * also: bitmask of flags that must be used with this option
134
+ * flags: bitmask of option flags, see XTOPT_*
135
+ * ptroff: offset into private structure for member
136
+ * size: size of the item pointed to by ptroff; this is a safeguard
137
+ * min: lowest allowed value (for singular integral types)
138
+ * max: highest allowed value (for singular integral types)
141
139
*/
142
140
143
141
struct xt_option_entry
@@ -163,12 +161,11 @@ struct xt_xlate_tg_params
163
161
bool escape_quotes ;
164
162
};
165
163
166
- /**
167
- * @ext_name: name of extension currently being processed
168
- * @data: per-extension (kernel) data block
169
- * @udata: per-extension private scratch area
170
- * (cf. xtables_{match,target}->udata_size)
171
- * @xflags: options of the extension that have been used
164
+ /* ext_name: name of extension currently being processed
165
+ * data: per-extension (kernel) data block
166
+ * udata: per-extension private scratch area
167
+ * (cf. xtables_{match,target}->udata_size)
168
+ * xflags: options of the extension that have been used
172
169
*/
173
170
174
171
struct xt_fcheck_call
@@ -187,17 +184,16 @@ struct xt_xlate_mt_params
187
184
bool escape_quotes ;
188
185
};
189
186
190
- /**
191
- * @arg: input from command line
192
- * @ext_name: name of extension currently being processed
193
- * @entry: current option being processed
194
- * @data: per-extension kernel data block
195
- * @xflags: options of the extension that have been used
196
- * @invert: whether option was used with !
197
- * @nvals: number of results in uXX_multi
198
- * @val: parsed result
199
- * @udata: per-extension private scratch area
200
- * (cf. xtables_{match,target}->udata_size)
187
+ /* arg: input from command line
188
+ * ext_name: name of extension currently being processed
189
+ * entry: current option being processed
190
+ * data: per-extension kernel data block
191
+ * xflags: options of the extension that have been used
192
+ * invert: whether option was used with !
193
+ * nvals: number of results in uXX_multi
194
+ * val: parsed result
195
+ * udata: per-extension private scratch area
196
+ * (cf. xtables_{match,target}->udata_size)
201
197
*/
202
198
203
199
struct xt_option_call
@@ -353,8 +349,7 @@ struct xtables_match
353
349
354
350
struct xtables_target
355
351
{
356
- /**
357
- * ABI/API version this module requires. Must be first member,
352
+ /* ABI/API version this module requires. Must be first member,
358
353
* as the rest of this struct may be subject to ABI changes.
359
354
*/
360
355
0 commit comments