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>


1925         switch (val) {
1926         case TCP_NODELAY:               return ("TCP_NODELAY");
1927         case TCP_MAXSEG:                return ("TCP_MAXSEG");
1928         case TCP_KEEPALIVE:             return ("TCP_KEEPALIVE");
1929         case TCP_NOTIFY_THRESHOLD:      return ("TCP_NOTIFY_THRESHOLD");
1930         case TCP_ABORT_THRESHOLD:       return ("TCP_ABORT_THRESHOLD");
1931         case TCP_CONN_NOTIFY_THRESHOLD: return ("TCP_CONN_NOTIFY_THRESHOLD");
1932         case TCP_CONN_ABORT_THRESHOLD:  return ("TCP_CONN_ABORT_THRESHOLD");
1933         case TCP_RECVDSTADDR:           return ("TCP_RECVDSTADDR");
1934         case TCP_ANONPRIVBIND:          return ("TCP_ANONPRIVBIND");
1935         case TCP_EXCLBIND:              return ("TCP_EXCLBIND");
1936         case TCP_INIT_CWND:             return ("TCP_INIT_CWND");
1937         case TCP_KEEPALIVE_THRESHOLD:   return ("TCP_KEEPALIVE_THRESHOLD");
1938         case TCP_KEEPALIVE_ABORT_THRESHOLD:
1939                 return ("TCP_KEEPALIVE_ABORT_THRESHOLD");
1940         case TCP_CORK:                  return ("TCP_CORK");
1941         case TCP_RTO_INITIAL:           return ("TCP_RTO_INITIAL");
1942         case TCP_RTO_MIN:               return ("TCP_RTO_MIN");
1943         case TCP_RTO_MAX:               return ("TCP_RTO_MAX");
1944         case TCP_LINGER2:               return ("TCP_LINGER2");



1945 
1946         default:                        (void) snprintf(pri->code_buf,
1947                                             sizeof (pri->code_buf),
1948                                             "0x%lx", val);
1949                                         return (pri->code_buf);
1950         }
1951 }
1952 
1953 
1954 const char *
1955 sctp_optname(private_t *pri, long val)
1956 {
1957         switch (val) {
1958         case SCTP_RTOINFO:              return ("SCTP_RTOINFO");
1959         case SCTP_ASSOCINFO:            return ("SCTP_ASSOCINFO");
1960         case SCTP_INITMSG:              return ("SCTP_INITMSG");
1961         case SCTP_NODELAY:              return ("SCTP_NODELAY");
1962         case SCTP_AUTOCLOSE:            return ("SCTP_AUTOCLOSE");
1963         case SCTP_SET_PEER_PRIMARY_ADDR:
1964                 return ("SCTP_SET_PEER_PRIMARY_ADDR");




1925         switch (val) {
1926         case TCP_NODELAY:               return ("TCP_NODELAY");
1927         case TCP_MAXSEG:                return ("TCP_MAXSEG");
1928         case TCP_KEEPALIVE:             return ("TCP_KEEPALIVE");
1929         case TCP_NOTIFY_THRESHOLD:      return ("TCP_NOTIFY_THRESHOLD");
1930         case TCP_ABORT_THRESHOLD:       return ("TCP_ABORT_THRESHOLD");
1931         case TCP_CONN_NOTIFY_THRESHOLD: return ("TCP_CONN_NOTIFY_THRESHOLD");
1932         case TCP_CONN_ABORT_THRESHOLD:  return ("TCP_CONN_ABORT_THRESHOLD");
1933         case TCP_RECVDSTADDR:           return ("TCP_RECVDSTADDR");
1934         case TCP_ANONPRIVBIND:          return ("TCP_ANONPRIVBIND");
1935         case TCP_EXCLBIND:              return ("TCP_EXCLBIND");
1936         case TCP_INIT_CWND:             return ("TCP_INIT_CWND");
1937         case TCP_KEEPALIVE_THRESHOLD:   return ("TCP_KEEPALIVE_THRESHOLD");
1938         case TCP_KEEPALIVE_ABORT_THRESHOLD:
1939                 return ("TCP_KEEPALIVE_ABORT_THRESHOLD");
1940         case TCP_CORK:                  return ("TCP_CORK");
1941         case TCP_RTO_INITIAL:           return ("TCP_RTO_INITIAL");
1942         case TCP_RTO_MIN:               return ("TCP_RTO_MIN");
1943         case TCP_RTO_MAX:               return ("TCP_RTO_MAX");
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");
1948 
1949         default:                        (void) snprintf(pri->code_buf,
1950                                             sizeof (pri->code_buf),
1951                                             "0x%lx", val);
1952                                         return (pri->code_buf);
1953         }
1954 }
1955 
1956 
1957 const char *
1958 sctp_optname(private_t *pri, long val)
1959 {
1960         switch (val) {
1961         case SCTP_RTOINFO:              return ("SCTP_RTOINFO");
1962         case SCTP_ASSOCINFO:            return ("SCTP_ASSOCINFO");
1963         case SCTP_INITMSG:              return ("SCTP_INITMSG");
1964         case SCTP_NODELAY:              return ("SCTP_NODELAY");
1965         case SCTP_AUTOCLOSE:            return ("SCTP_AUTOCLOSE");
1966         case SCTP_SET_PEER_PRIMARY_ADDR:
1967                 return ("SCTP_SET_PEER_PRIMARY_ADDR");