Print this page
dccp: MIB-II

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/mib2.h
          +++ new/usr/src/uts/common/inet/mib2.h
↓ open down ↓ 88 lines elided ↑ open up ↑
  89   89  #define MIB2_UDP                (IPPROTO_MAX+7)
  90   90  #define MIB2_EGP                (IPPROTO_MAX+8)
  91   91  #define MIB2_CMOT               (IPPROTO_MAX+9)
  92   92  #define MIB2_TRANSMISSION       (IPPROTO_MAX+10)
  93   93  #define MIB2_SNMP               (IPPROTO_MAX+11)
  94   94  #define MIB2_IP6                (IPPROTO_MAX+12)
  95   95  #define MIB2_ICMP6              (IPPROTO_MAX+13)
  96   96  #define MIB2_TCP6               (IPPROTO_MAX+14)
  97   97  #define MIB2_UDP6               (IPPROTO_MAX+15)
  98   98  #define MIB2_SCTP               (IPPROTO_MAX+16)
       99 +#define MIB2_DCCP               (IPPROTO_MAX+17)
      100 +#define MIB2_DCCP6              (IPPROTO_MAX+18)
  99  101  
 100  102  /*
 101  103   * Define range of levels for use with MIB2_*
 102  104   */
 103  105  #define MIB2_RANGE_START        (IPPROTO_MAX+1)
 104      -#define MIB2_RANGE_END          (IPPROTO_MAX+16)
      106 +#define MIB2_RANGE_END          (IPPROTO_MAX+18)
 105  107  
 106  108  
 107  109  #define EXPER                   1024    /* experimental - not part of mib */
 108  110  #define EXPER_IGMP              (EXPER+1)
 109  111  #define EXPER_DVMRP             (EXPER+2)
 110  112  #define EXPER_RAWIP             (EXPER+3)
 111  113  #define EXPER_IP_AND_ALL_IRES   (EXPER+4)
 112  114  
 113  115  /*
 114  116   * Define range of levels for experimental use
↓ open down ↓ 1664 lines elided ↑ open up ↑
1779 1781          Counter         sctpInClosed;
1780 1782          int             sctpEntrySize;
1781 1783          int             sctpLocalEntrySize;
1782 1784          int             sctpRemoteEntrySize;
1783 1785  } mib2_sctp_t;
1784 1786  
1785 1787  #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
1786 1788  #pragma pack()
1787 1789  #endif
1788 1790  
     1791 +/*
     1792 + * the DCCP group
     1793 + */
     1794 +#define MIB2_DCCP_CONN          18
     1795 +#define MIB2_DCCP6_CONN         19
     1796 +
     1797 +#define MIB2_DCCP_closed        1
     1798 +#define MIB2_DCCP_listen        2
     1799 +
     1800 +/* Pack data to make struct size the same for 32- and 64-bits */
     1801 +#if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
     1802 +#pragma pack(4)
     1803 +#endif
     1804 +
     1805 +typedef struct mib2_dccp {
     1806 +
     1807 +                /* # of direct transitions CLOSED -> ACK-SENT   { dccp 5 } */
     1808 +        Counter dccpActiveOpens;
     1809 +                /* # of direct transitions LISTEN -> ACK-RCVD   { dccp 6 } */
     1810 +        Counter dccpPassiveOpens;
     1811 +                /* # of direct SIN-SENT/RCVD -> CLOSED/LISTEN   { dccp 7 } */
     1812 +        Counter dccpAttemptFails;
     1813 +                /* # of direct ESTABLISHED/CLOSE-WAIT -> CLOSED { dccp 8 } */
     1814 +        Counter dccpEstabResets;
     1815 +                /* # of connections ESTABLISHED or CLOSE-WAIT   { dccp 9 } */
     1816 +        Gauge   dccpCurrEstab;
     1817 +                /* total # of segments recv'd                   { dccp 10 } */
     1818 +        Counter dccpInSegs;
     1819 +                /* total # of segments sent                     { dccp 11 } */
     1820 +        Counter dccpOutSegs;
     1821 +                /* total # of segments retransmitted            { dccp 12 } */
     1822 +        Counter dccpRetransSegs;
     1823 +
     1824 +        Counter dccpOutDataSegs;
     1825 +        Counter dccpOutDataBytes;
     1826 +
     1827 +        int     dccpEntrySize;
     1828 +        int     dccp6EntrySize;
     1829 +
     1830 +        int     dccpConnTableSize;
     1831 +        int     dccp6ConnTableSize;
     1832 +
     1833 +        Counter64       dccpHCInDatagrams;
     1834 +        /* total # of segments recv'd                           { tcp 17 } */
     1835 +        Counter64       dccpHCInSegs;
     1836 +        /* total # of segments sent                             { tcp 18 } */
     1837 +        Counter64       dccpHCOutSegs;
     1838 +} mib2_dccp_t;
     1839 +#define MIB_FIRST_NEW_ELM_mib2_dccp_t   dccpHCInDatagrams
     1840 +
     1841 +#if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
     1842 +#pragma pack()
     1843 +#endif
     1844 +
     1845 +/* Pack data to make struct size the same for 32- and 64-bits */
     1846 +#if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
     1847 +#pragma pack(4)
     1848 +#endif
     1849 +
     1850 +typedef struct mib2_dccpConnEntry {
     1851 +        int             dccpConnState;
     1852 +        IpAddress       dccpConnLocalAddress;
     1853 +        int             dccpConnLocalPort;
     1854 +        IpAddress       dccpConnRemAddress;
     1855 +        int             dccpConnRemPort;
     1856 +
     1857 +        struct dccpConnEntryInfo_s {
     1858 +                                /* current rto (retransmit timeout) */
     1859 +                Gauge           ce_rto;
     1860 +                                /* current max segment size */
     1861 +                Gauge           ce_mss;
     1862 +                                /* actual internal state */
     1863 +                int             ce_state;
     1864 +        } dccpConnEntryInfo;
     1865 +
     1866 +        uint32_t        dccpConnCreationProcess;
     1867 +        uint64_t        dccpConnCreationTime;
     1868 +} mib2_dccpConnEntry_t;
     1869 +#define MIB_FIRST_NEW_ELM_mib2_dccpConnEntry_t  dccpConnCreationProcess
     1870 +
     1871 +#if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
     1872 +#pragma pack()
     1873 +#endif
     1874 +
     1875 +/* Pack data to make struct size the same for 32- and 64-bits */
     1876 +#if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
     1877 +#pragma pack(4)
     1878 +#endif
     1879 +
     1880 +typedef struct mib2_dccp6ConnEntry {
     1881 +        Ip6Address      dccp6ConnLocalAddress;
     1882 +        int             dccp6ConnLocalPort;
     1883 +        Ip6Address      dccp6ConnRemAddress;
     1884 +        int             dccp6ConnRemPort;
     1885 +        /* Interface index or zero              { ipv6DccpConnEntry 5 } */
     1886 +        DeviceIndex     dccp6ConnIfIndex;
     1887 +        /* State of dccp6 connection            { ipv6DccpConnEntry 6 } RW */
     1888 +        int             dccp6ConnState;
     1889 +
     1890 +        struct dccp6ConnEntryInfo_s {
     1891 +                                /* current rto (retransmit timeout) */
     1892 +                Gauge           ce_rto;
     1893 +                                /* current max segment size */
     1894 +                Gauge           ce_mss;
     1895 +                                /* actual internal state */
     1896 +                int             ce_state;
     1897 +        } dccp6ConnEntryInfo;
     1898 +
     1899 +        /* PID of the processes that created this connection */
     1900 +        uint32_t        dccp6ConnCreationProcess;
     1901 +        /* System uptime when the connection was created */
     1902 +        uint64_t        dccp6ConnCreationTime;
     1903 +} mib2_dccp6ConnEntry_t;
     1904 +#define MIB_FIRST_NEW_ELM_mib2_dccp6ConnEntry_t dccp6ConnCreationProcess
     1905 +
     1906 +#if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
     1907 +#pragma pack()
     1908 +#endif
1789 1909  
1790 1910  #ifdef  __cplusplus
1791 1911  }
1792 1912  #endif
1793 1913  
1794 1914  #endif  /* _INET_MIB2_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX