Print this page
6227 truss(1M) is not showing TCP_KEEPIDLE, TCP_KEEPCNT, and TCP_KEEPINTVL TCP options. Hex values are shown instead.
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Richard PALO <richard@netbsd.org>
Reviewed by: Toomas Soome <tsoome@me.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/truss/print.c
          +++ new/usr/src/cmd/truss/print.c
↓ open down ↓ 1934 lines elided ↑ open up ↑
1935 1935          case TCP_EXCLBIND:              return ("TCP_EXCLBIND");
1936 1936          case TCP_INIT_CWND:             return ("TCP_INIT_CWND");
1937 1937          case TCP_KEEPALIVE_THRESHOLD:   return ("TCP_KEEPALIVE_THRESHOLD");
1938 1938          case TCP_KEEPALIVE_ABORT_THRESHOLD:
1939 1939                  return ("TCP_KEEPALIVE_ABORT_THRESHOLD");
1940 1940          case TCP_CORK:                  return ("TCP_CORK");
1941 1941          case TCP_RTO_INITIAL:           return ("TCP_RTO_INITIAL");
1942 1942          case TCP_RTO_MIN:               return ("TCP_RTO_MIN");
1943 1943          case TCP_RTO_MAX:               return ("TCP_RTO_MAX");
1944 1944          case TCP_LINGER2:               return ("TCP_LINGER2");
     1945 +        case TCP_KEEPIDLE:              return ("TCP_KEEPIDLE");
     1946 +        case TCP_KEEPCNT:               return ("TCP_KEEPCNT");
     1947 +        case TCP_KEEPINTVL:             return ("TCP_KEEPINTVL");
1945 1948  
1946 1949          default:                        (void) snprintf(pri->code_buf,
1947 1950                                              sizeof (pri->code_buf),
1948 1951                                              "0x%lx", val);
1949 1952                                          return (pri->code_buf);
1950 1953          }
1951 1954  }
1952 1955  
1953 1956  
1954 1957  const char *
↓ open down ↓ 920 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX