Print this page
917 Make TCP's iss_incr a tunable

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/tcp/tcp_tunables.c
          +++ new/usr/src/uts/common/inet/tcp/tcp_tunables.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright (c) 2011, Joyent Inc. All rights reserved.
  23   24   */
  24   25  /* Copyright (c) 1990 Mentat Inc. */
  25   26  
  26   27  #include <inet/ip.h>
  27   28  #include <inet/tcp_impl.h>
  28   29  #include <sys/multidata.h>
  29   30  #include <sys/sunddi.h>
  30   31  
  31   32  /* Max size IP datagram is 64k - 1 */
  32   33  #define TCP_MSS_MAX_IPV4 (IP_MAXPACKET - (sizeof (ipha_t) + sizeof (tcpha_t)))
↓ open down ↓ 432 lines elided ↑ open up ↑
 465  466  
 466  467          { "_listener_limit_conf", MOD_PROTO_TCP,
 467  468              NULL, tcp_listener_conf_get, {0}, {0} },
 468  469  
 469  470          { "_listener_limit_conf_add", MOD_PROTO_TCP,
 470  471              tcp_listener_conf_add, NULL, {0}, {0} },
 471  472  
 472  473          { "_listener_limit_conf_del", MOD_PROTO_TCP,
 473  474              tcp_listener_conf_del, NULL, {0}, {0} },
 474  475  
      476 +        { "_iss_incr", MOD_PROTO_TCP,
      477 +            mod_set_uint32, mod_get_uint32,
      478 +            {1, ISS_INCR, ISS_INCR},
      479 +            {ISS_INCR} },
      480 +
 475  481          { "?", MOD_PROTO_TCP, NULL, mod_get_allprop, {0}, {0} },
 476  482  
 477  483          { NULL, 0, NULL, NULL, {0}, {0} }
 478  484  };
 479  485  
 480  486  int tcp_propinfo_count = A_CNT(tcp_propinfo_tbl);
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX