1 /*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright 2016 Joyent, Inc.
24 * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
25 * Copyright (c) 2012, 2017 by Delphix. All rights reserved.
26 */
27 /* Copyright (c) 1990 Mentat Inc. */
28
29 #include <inet/ip.h>
30 #include <inet/tcp_impl.h>
31 #include <inet/cc.h>
32 #include <sys/multidata.h>
33 #include <sys/sunddi.h>
34
35 /* Max size IP datagram is 64k - 1 */
36 #define TCP_MSS_MAX_IPV4 (IP_MAXPACKET - (sizeof (ipha_t) + sizeof (tcpha_t)))
37 #define TCP_MSS_MAX_IPV6 (IP_MAXPACKET - (sizeof (ip6_t) + sizeof (tcpha_t)))
38
39 /* Max of the above */
40 #define TCP_MSS_MAX TCP_MSS_MAX_IPV4
41
42 /*
43 * Set the RFC 1948 pass phrase
44 */
45 /* ARGSUSED */
46 static int
47 tcp_set_1948phrase(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo,
48 const char *ifname, const void* pr_val, uint_t flags)
49 {
50 if (flags & MOD_PROP_DEFAULT)
51 return (ENOTSUP);
52
53 /*
54 * Basically, value contains a new pass phrase. Pass it along!
55 */
56 tcp_iss_key_init((uint8_t *)pr_val, strlen(pr_val),
57 stack->netstack_tcp);
58 return (0);
59 }
60
61 /*
62 * returns the current list of listener limit configuration.
63 */
64 /* ARGSUSED */
65 static int
66 tcp_listener_conf_get(netstack_t *stack, mod_prop_info_t *pinfo,
67 const char *ifname, void *val, uint_t psize, uint_t flags)
68 {
69 tcp_stack_t *tcps = stack->netstack_tcp;
70 tcp_listener_t *tl;
71 char *pval = val;
72 size_t nbytes = 0, tbytes = 0;
73 uint_t size;
74 int err = 0;
75
76 bzero(pval, psize);
77 size = psize;
78
79 if (flags & (MOD_PROP_DEFAULT|MOD_PROP_PERM|MOD_PROP_POSSIBLE))
80 return (0);
81
82 mutex_enter(&tcps->tcps_listener_conf_lock);
83 for (tl = list_head(&tcps->tcps_listener_conf); tl != NULL;
84 tl = list_next(&tcps->tcps_listener_conf, tl)) {
85 if (psize == size)
86 nbytes = snprintf(pval, size, "%d:%d", tl->tl_port,
87 tl->tl_ratio);
88 else
89 nbytes = snprintf(pval, size, ",%d:%d", tl->tl_port,
90 tl->tl_ratio);
91 size -= nbytes;
92 pval += nbytes;
93 tbytes += nbytes;
94 if (tbytes >= psize) {
95 /* Buffer overflow, stop copying information */
96 err = ENOBUFS;
97 break;
98 }
99 }
100
101 mutex_exit(&tcps->tcps_listener_conf_lock);
102 return (err);
103 }
104
105 /*
106 * add a new listener limit configuration.
107 */
108 /* ARGSUSED */
109 static int
110 tcp_listener_conf_add(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo,
111 const char *ifname, const void* pval, uint_t flags)
112 {
113 tcp_listener_t *new_tl;
114 tcp_listener_t *tl;
115 long lport;
116 long ratio;
117 char *colon;
118 tcp_stack_t *tcps = stack->netstack_tcp;
119
120 if (flags & MOD_PROP_DEFAULT)
121 return (ENOTSUP);
122
123 if (ddi_strtol(pval, &colon, 10, &lport) != 0 || lport <= 0 ||
124 lport > USHRT_MAX || *colon != ':') {
125 return (EINVAL);
126 }
127 if (ddi_strtol(colon + 1, NULL, 10, &ratio) != 0 || ratio <= 0)
128 return (EINVAL);
129
130 mutex_enter(&tcps->tcps_listener_conf_lock);
131 for (tl = list_head(&tcps->tcps_listener_conf); tl != NULL;
132 tl = list_next(&tcps->tcps_listener_conf, tl)) {
133 /* There is an existing entry, so update its ratio value. */
134 if (tl->tl_port == lport) {
135 tl->tl_ratio = ratio;
136 mutex_exit(&tcps->tcps_listener_conf_lock);
137 return (0);
138 }
139 }
140
141 if ((new_tl = kmem_alloc(sizeof (tcp_listener_t), KM_NOSLEEP)) ==
142 NULL) {
143 mutex_exit(&tcps->tcps_listener_conf_lock);
144 return (ENOMEM);
145 }
146
147 new_tl->tl_port = lport;
148 new_tl->tl_ratio = ratio;
149 list_insert_tail(&tcps->tcps_listener_conf, new_tl);
150 mutex_exit(&tcps->tcps_listener_conf_lock);
151 return (0);
152 }
153
154 /*
155 * remove a listener limit configuration.
156 */
157 /* ARGSUSED */
158 static int
159 tcp_listener_conf_del(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo,
160 const char *ifname, const void* pval, uint_t flags)
161 {
162 tcp_listener_t *tl;
163 long lport;
164 tcp_stack_t *tcps = stack->netstack_tcp;
165
166 if (flags & MOD_PROP_DEFAULT)
167 return (ENOTSUP);
168
169 if (ddi_strtol(pval, NULL, 10, &lport) != 0 || lport <= 0 ||
170 lport > USHRT_MAX) {
171 return (EINVAL);
172 }
173 mutex_enter(&tcps->tcps_listener_conf_lock);
174 for (tl = list_head(&tcps->tcps_listener_conf); tl != NULL;
175 tl = list_next(&tcps->tcps_listener_conf, tl)) {
176 if (tl->tl_port == lport) {
177 list_remove(&tcps->tcps_listener_conf, tl);
178 mutex_exit(&tcps->tcps_listener_conf_lock);
179 kmem_free(tl, sizeof (tcp_listener_t));
180 return (0);
181 }
182 }
183 mutex_exit(&tcps->tcps_listener_conf_lock);
184 return (ESRCH);
185 }
186
187 static int
188 tcp_set_buf_prop(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo,
189 const char *ifname, const void *pval, uint_t flags)
190 {
191 return (mod_set_buf_prop(stack->netstack_tcp->tcps_propinfo_tbl, stack,
192 cr, pinfo, ifname, pval, flags));
193 }
194
195 static int
196 tcp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname,
197 void *val, uint_t psize, uint_t flags)
198 {
199 return (mod_get_buf_prop(stack->netstack_tcp->tcps_propinfo_tbl, stack,
200 pinfo, ifname, val, psize, flags));
201 }
202
203 /*
204 * Special checkers for smallest/largest anonymous port so they don't
205 * ever happen to be (largest < smallest).
206 */
207 /* ARGSUSED */
208 static int
209 tcp_smallest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo,
210 const char *ifname, const void *pval, uint_t flags)
211 {
212 unsigned long new_value;
213 tcp_stack_t *tcps = stack->netstack_tcp;
214 int err;
215
216 if ((err = mod_uint32_value(pval, pinfo, flags, &new_value)) != 0)
217 return (err);
218 /* mod_uint32_value() + pinfo guarantees we're in TCP port range. */
219 if ((uint32_t)new_value > tcps->tcps_largest_anon_port)
220 return (ERANGE);
221 pinfo->prop_cur_uval = (uint32_t)new_value;
222 return (0);
223 }
224
225 /* ARGSUSED */
226 static int
227 tcp_largest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo,
228 const char *ifname, const void *pval, uint_t flags)
229 {
230 unsigned long new_value;
231 tcp_stack_t *tcps = stack->netstack_tcp;
232 int err;
233
234 if ((err = mod_uint32_value(pval, pinfo, flags, &new_value)) != 0)
235 return (err);
236 /* mod_uint32_value() + pinfo guarantees we're in TCP port range. */
237 if ((uint32_t)new_value < tcps->tcps_smallest_anon_port)
238 return (ERANGE);
239 pinfo->prop_cur_uval = (uint32_t)new_value;
240 return (0);
241 }
242
243 /* ARGSUSED */
244 static int
245 tcp_set_cc_algorithm(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo,
246 const char *ifname, const void *pval, uint_t flags)
247 {
248 tcp_stack_t *tcps = stack->netstack_tcp;
249 char *name = (flags & MOD_PROP_DEFAULT) ?
250 CC_DEFAULT_ALGO_NAME : (char *)pval;
251 struct cc_algo *algo = cc_load_algo(name);
252
253 if (algo == NULL)
254 return (EINVAL);
255
256 tcps->tcps_default_cc_algo = algo;
257 return (0);
258 }
259
260 /* ARGSUSED */
261 static int
262 tcp_get_cc_algorithm(netstack_t *stack, mod_prop_info_t *pinfo,
263 const char *ifname, void *pval, uint_t psize, uint_t flags)
264 {
265 size_t nbytes;
266
267 if (flags & MOD_PROP_POSSIBLE) {
268 /* libipadm doesn't call down for possible values. */
269 return (ENOTSUP);
270 }
271
272 if (flags & MOD_PROP_PERM) {
273 nbytes = snprintf(pval, psize, "%u", MOD_PROP_PERM_RW);
274 } else if (flags & MOD_PROP_DEFAULT) {
275 nbytes = snprintf(pval, psize, "%s", CC_DEFAULT_ALGO_NAME);
276 } else {
277 nbytes = snprintf(pval, psize, "%s",
278 stack->netstack_tcp->tcps_default_cc_algo->name);
279 }
280 if (nbytes >= psize)
281 return (ENOBUFS);
282 return (0);
283 }
284
285 /*
286 * All of these are alterable, within the min/max values given, at run time.
287 *
288 * Note: All those tunables which do not start with "_" are Committed and
289 * therefore are public. See PSARC 2010/080.
290 */
291 mod_prop_info_t tcp_propinfo_tbl[] = {
292 /* tunable - 0 */
293 { "_time_wait_interval", MOD_PROTO_TCP,
294 mod_set_uint32, mod_get_uint32,
295 {1*SECONDS, TCP_TIME_WAIT_MAX, 1*MINUTES}, {1*MINUTES} },
296
297 { "_conn_req_max_q", MOD_PROTO_TCP,
298 mod_set_uint32, mod_get_uint32,
299 {1, UINT32_MAX, 128}, {128} },
300
301 { "_conn_req_max_q0", MOD_PROTO_TCP,
302 mod_set_uint32, mod_get_uint32,
303 {0, UINT32_MAX, 1024}, {1024} },
304
305 { "_conn_req_min", MOD_PROTO_TCP,
306 mod_set_uint32, mod_get_uint32,
307 {1, 1024, 1}, {1} },
308
309 { "_conn_grace_period", MOD_PROTO_TCP,
310 mod_set_uint32, mod_get_uint32,
311 {0*MS, 20*SECONDS, 0*MS}, {0*MS} },
312
313 { "_cwnd_max", MOD_PROTO_TCP,
314 mod_set_uint32, mod_get_uint32,
315 {128, ULP_MAX_BUF, 1024*1024}, {1024*1024} },
316
317 { "_debug", MOD_PROTO_TCP,
318 mod_set_uint32, mod_get_uint32,
319 {0, 10, 0}, {0} },
320
321 { "smallest_nonpriv_port", MOD_PROTO_TCP,
322 mod_set_uint32, mod_get_uint32,
323 {1024, (32*1024), 1024}, {1024} },
324
325 { "_ip_abort_cinterval", MOD_PROTO_TCP,
326 mod_set_uint32, mod_get_uint32,
327 {1*SECONDS, UINT32_MAX, 3*MINUTES}, {3*MINUTES} },
328
329 { "_ip_abort_linterval", MOD_PROTO_TCP,
330 mod_set_uint32, mod_get_uint32,
331 {1*SECONDS, UINT32_MAX, 3*MINUTES}, {3*MINUTES} },
332
333 /* tunable - 10 */
334 { "_ip_abort_interval", MOD_PROTO_TCP,
335 mod_set_uint32, mod_get_uint32,
336 {500*MS, UINT32_MAX, 5*MINUTES}, {5*MINUTES} },
337
338 { "_ip_notify_cinterval", MOD_PROTO_TCP,
339 mod_set_uint32, mod_get_uint32,
340 {1*SECONDS, UINT32_MAX, 10*SECONDS},
341 {10*SECONDS} },
342
343 { "_ip_notify_interval", MOD_PROTO_TCP,
344 mod_set_uint32, mod_get_uint32,
345 {500*MS, UINT32_MAX, 10*SECONDS}, {10*SECONDS} },
346
347 { "_ipv4_ttl", MOD_PROTO_TCP,
348 mod_set_uint32, mod_get_uint32,
349 {1, 255, 64}, {64} },
350
351 { "_keepalive_interval", MOD_PROTO_TCP,
352 mod_set_uint32, mod_get_uint32,
353 {1*SECONDS, 10*DAYS, 2*HOURS}, {2*HOURS} },
354
355 { "_maxpsz_multiplier", MOD_PROTO_TCP,
356 mod_set_uint32, mod_get_uint32,
357 {0, 100, 10}, {10} },
358
359 { "_mss_def_ipv4", MOD_PROTO_TCP,
360 mod_set_uint32, mod_get_uint32,
361 {1, TCP_MSS_MAX_IPV4, 536}, {536} },
362
363 { "_mss_max_ipv4", MOD_PROTO_TCP,
364 mod_set_uint32, mod_get_uint32,
365 {1, TCP_MSS_MAX_IPV4, TCP_MSS_MAX_IPV4},
366 {TCP_MSS_MAX_IPV4} },
367
368 { "_mss_min", MOD_PROTO_TCP,
369 mod_set_uint32, mod_get_uint32,
370 {1, TCP_MSS_MAX, 108}, {108} },
371
372 { "_naglim_def", MOD_PROTO_TCP,
373 mod_set_uint32, mod_get_uint32,
374 {1, (64*1024)-1, (4*1024)-1}, {(4*1024)-1} },
375
376 /* tunable - 20 */
377 { "_rexmit_interval_initial", MOD_PROTO_TCP,
378 mod_set_uint32, mod_get_uint32,
379 {1*MS, 20*SECONDS, 1*SECONDS}, {1*SECONDS} },
380
381 { "_rexmit_interval_max", MOD_PROTO_TCP,
382 mod_set_uint32, mod_get_uint32,
383 {1*MS, 2*HOURS, 60*SECONDS}, {60*SECONDS} },
384
385 { "_rexmit_interval_min", MOD_PROTO_TCP,
386 mod_set_uint32, mod_get_uint32,
387 {1*MS, 2*HOURS, 400*MS}, {400*MS} },
388
389 { "_deferred_ack_interval", MOD_PROTO_TCP,
390 mod_set_uint32, mod_get_uint32,
391 {1*MS, 1*MINUTES, 100*MS}, {100*MS} },
392
393 { "_snd_lowat_fraction", MOD_PROTO_TCP,
394 mod_set_uint32, mod_get_uint32,
395 {0, 16, 10}, {10} },
396
397 { "_dupack_fast_retransmit", MOD_PROTO_TCP,
398 mod_set_uint32, mod_get_uint32,
399 {1, 10000, 3}, {3} },
400
401 { "_ignore_path_mtu", MOD_PROTO_TCP,
402 mod_set_boolean, mod_get_boolean,
403 {B_FALSE}, {B_FALSE} },
404
405 { "smallest_anon_port", MOD_PROTO_TCP,
406 tcp_smallest_anon_set, mod_get_uint32,
407 {1024, ULP_MAX_PORT, 32*1024}, {32*1024} },
408
409 { "largest_anon_port", MOD_PROTO_TCP,
410 tcp_largest_anon_set, mod_get_uint32,
411 {1024, ULP_MAX_PORT, ULP_MAX_PORT},
412 {ULP_MAX_PORT} },
413
414 { "send_buf", MOD_PROTO_TCP,
415 tcp_set_buf_prop, tcp_get_buf_prop,
416 {TCP_XMIT_LOWATER, ULP_MAX_BUF, TCP_XMIT_HIWATER},
417 {TCP_XMIT_HIWATER} },
418
419 /* tunable - 30 */
420 { "_xmit_lowat", MOD_PROTO_TCP,
421 mod_set_uint32, mod_get_uint32,
422 {TCP_XMIT_LOWATER, ULP_MAX_BUF, TCP_XMIT_LOWATER},
423 {TCP_XMIT_LOWATER} },
424
425 { "recv_buf", MOD_PROTO_TCP,
426 tcp_set_buf_prop, tcp_get_buf_prop,
427 {TCP_RECV_LOWATER, ULP_MAX_BUF, TCP_RECV_HIWATER},
428 {TCP_RECV_HIWATER} },
429
430 { "_recv_hiwat_minmss", MOD_PROTO_TCP,
431 mod_set_uint32, mod_get_uint32,
432 {1, 65536, 4}, {4} },
433
434 { "_fin_wait_2_flush_interval", MOD_PROTO_TCP,
435 mod_set_uint32, mod_get_uint32,
436 {1*SECONDS, 2*HOURS, 60*SECONDS},
437 {60*SECONDS} },
438
439 { "max_buf", MOD_PROTO_TCP,
440 mod_set_uint32, mod_get_uint32,
441 {8192, ULP_MAX_BUF, 1024*1024}, {1024*1024} },
442
443 { "_strong_iss", MOD_PROTO_TCP,
444 mod_set_uint32, mod_get_uint32,
445 {0, 2, 2}, {2} },
446
447 { "_rtt_updates", MOD_PROTO_TCP,
448 mod_set_uint32, mod_get_uint32,
449 {0, 65536, 20}, {20} },
450
451 { "_wscale_always", MOD_PROTO_TCP,
452 mod_set_boolean, mod_get_boolean,
453 {B_TRUE}, {B_TRUE} },
454
455 { "_tstamp_always", MOD_PROTO_TCP,
456 mod_set_boolean, mod_get_boolean,
457 {B_FALSE}, {B_FALSE} },
458
459 { "_tstamp_if_wscale", MOD_PROTO_TCP,
460 mod_set_boolean, mod_get_boolean,
461 {B_TRUE}, {B_TRUE} },
462
463 /* tunable - 40 */
464 { "_rexmit_interval_extra", MOD_PROTO_TCP,
465 mod_set_uint32, mod_get_uint32,
466 {0*MS, 2*HOURS, 0*MS}, {0*MS} },
467
468 { "_deferred_acks_max", MOD_PROTO_TCP,
469 mod_set_uint32, mod_get_uint32,
470 {0, 16, 2}, {2} },
471
472 { "_slow_start_after_idle", MOD_PROTO_TCP,
473 mod_set_uint32, mod_get_uint32,
474 {0, 16384, 0}, {0} },
475
476 { "_slow_start_initial", MOD_PROTO_TCP,
477 mod_set_uint32, mod_get_uint32,
478 {0, 16, 0}, {0} },
479
480 { "sack", MOD_PROTO_TCP,
481 mod_set_uint32, mod_get_uint32,
482 {0, 2, 2}, {2} },
483
484 { "_ipv6_hoplimit", MOD_PROTO_TCP,
485 mod_set_uint32, mod_get_uint32,
486 {0, IPV6_MAX_HOPS, IPV6_DEFAULT_HOPS},
487 {IPV6_DEFAULT_HOPS} },
488
489 { "_mss_def_ipv6", MOD_PROTO_TCP,
490 mod_set_uint32, mod_get_uint32,
491 {1, TCP_MSS_MAX_IPV6, 1220}, {1220} },
492
493 { "_mss_max_ipv6", MOD_PROTO_TCP,
494 mod_set_uint32, mod_get_uint32,
495 {1, TCP_MSS_MAX_IPV6, TCP_MSS_MAX_IPV6},
496 {TCP_MSS_MAX_IPV6} },
497
498 { "_rev_src_routes", MOD_PROTO_TCP,
499 mod_set_boolean, mod_get_boolean,
500 {B_FALSE}, {B_FALSE} },
501
502 { "_local_dack_interval", MOD_PROTO_TCP,
503 mod_set_uint32, mod_get_uint32,
504 {10*MS, 500*MS, 50*MS}, {50*MS} },
505
506 /* tunable - 50 */
507 { "_local_dacks_max", MOD_PROTO_TCP,
508 mod_set_uint32, mod_get_uint32,
509 {0, 16, 8}, {8} },
510
511 { "ecn", MOD_PROTO_TCP,
512 mod_set_uint32, mod_get_uint32,
513 {0, 2, 1}, {1} },
514
515 { "_rst_sent_rate_enabled", MOD_PROTO_TCP,
516 mod_set_boolean, mod_get_boolean,
517 {B_TRUE}, {B_TRUE} },
518
519 { "_rst_sent_rate", MOD_PROTO_TCP,
520 mod_set_uint32, mod_get_uint32,
521 {0, UINT32_MAX, 40}, {40} },
522
523 { "_push_timer_interval", MOD_PROTO_TCP,
524 mod_set_uint32, mod_get_uint32,
525 {0, 100*MS, 50*MS}, {50*MS} },
526
527 { "_use_smss_as_mss_opt", MOD_PROTO_TCP,
528 mod_set_boolean, mod_get_boolean,
529 {B_FALSE}, {B_FALSE} },
530
531 { "_keepalive_abort_interval", MOD_PROTO_TCP,
532 mod_set_uint32, mod_get_uint32,
533 {0, UINT32_MAX, 8*MINUTES}, {8*MINUTES} },
534
535 /*
536 * tcp_wroff_xtra is the extra space in front of TCP/IP header for link
537 * layer header. It has to be a multiple of 8.
538 */
539 { "_wroff_xtra", MOD_PROTO_TCP,
540 mod_set_aligned, mod_get_uint32,
541 {0, 256, 32}, {32} },
542
543 { "_dev_flow_ctl", MOD_PROTO_TCP,
544 mod_set_boolean, mod_get_boolean,
545 {B_FALSE}, {B_FALSE} },
546
547 { "_reass_timeout", MOD_PROTO_TCP,
548 mod_set_uint32, mod_get_uint32,
549 {0, UINT32_MAX, 100*SECONDS}, {100*SECONDS} },
550
551 /* tunable - 60 */
552 { "extra_priv_ports", MOD_PROTO_TCP,
553 mod_set_extra_privports, mod_get_extra_privports,
554 {1, ULP_MAX_PORT, 0}, {0} },
555
556 { "_1948_phrase", MOD_PROTO_TCP,
557 tcp_set_1948phrase, NULL, {0}, {0} },
558
559 { "_listener_limit_conf", MOD_PROTO_TCP,
560 NULL, tcp_listener_conf_get, {0}, {0} },
561
562 { "_listener_limit_conf_add", MOD_PROTO_TCP,
563 tcp_listener_conf_add, NULL, {0}, {0} },
564
565 { "_listener_limit_conf_del", MOD_PROTO_TCP,
566 tcp_listener_conf_del, NULL, {0}, {0} },
567
568 { "_iss_incr", MOD_PROTO_TCP,
569 mod_set_uint32, mod_get_uint32,
570 {1, ISS_INCR, ISS_INCR},
571 {ISS_INCR} },
572
573 { "congestion_control", MOD_PROTO_TCP,
574 tcp_set_cc_algorithm, tcp_get_cc_algorithm, {0}, {0} },
575
576 /* RFC 3465 - TCP Congestion Control with Appropriate Byte Counting */
577 { "_abc", MOD_PROTO_TCP,
578 mod_set_boolean, mod_get_boolean, {B_TRUE}, {B_TRUE} },
579
580 /* "L" value from RFC 3465 */
581 { "_abc_l_var", MOD_PROTO_TCP,
582 mod_set_uint32, mod_get_uint32, {1, UINT32_MAX, 2}, {2} },
583
584 { "?", MOD_PROTO_TCP, NULL, mod_get_allprop, {0}, {0} },
585
586 { NULL, 0, NULL, NULL, {0}, {0} }
587 };
588
589 int tcp_propinfo_count = A_CNT(tcp_propinfo_tbl);