Print this page
dccp: MIB-II


  79 #ifndef IPPROTO_MAX
  80 #define IPPROTO_MAX     256
  81 #endif
  82 
  83 #define MIB2_SYSTEM             (IPPROTO_MAX+1)
  84 #define MIB2_INTERFACES         (IPPROTO_MAX+2)
  85 #define MIB2_AT                 (IPPROTO_MAX+3)
  86 #define MIB2_IP                 (IPPROTO_MAX+4)
  87 #define MIB2_ICMP               (IPPROTO_MAX+5)
  88 #define MIB2_TCP                (IPPROTO_MAX+6)
  89 #define MIB2_UDP                (IPPROTO_MAX+7)
  90 #define MIB2_EGP                (IPPROTO_MAX+8)
  91 #define MIB2_CMOT               (IPPROTO_MAX+9)
  92 #define MIB2_TRANSMISSION       (IPPROTO_MAX+10)
  93 #define MIB2_SNMP               (IPPROTO_MAX+11)
  94 #define MIB2_IP6                (IPPROTO_MAX+12)
  95 #define MIB2_ICMP6              (IPPROTO_MAX+13)
  96 #define MIB2_TCP6               (IPPROTO_MAX+14)
  97 #define MIB2_UDP6               (IPPROTO_MAX+15)
  98 #define MIB2_SCTP               (IPPROTO_MAX+16)


  99 
 100 /*
 101  * Define range of levels for use with MIB2_*
 102  */
 103 #define MIB2_RANGE_START        (IPPROTO_MAX+1)
 104 #define MIB2_RANGE_END          (IPPROTO_MAX+16)
 105 
 106 
 107 #define EXPER                   1024    /* experimental - not part of mib */
 108 #define EXPER_IGMP              (EXPER+1)
 109 #define EXPER_DVMRP             (EXPER+2)
 110 #define EXPER_RAWIP             (EXPER+3)
 111 #define EXPER_IP_AND_ALL_IRES   (EXPER+4)
 112 
 113 /*
 114  * Define range of levels for experimental use
 115  */
 116 #define EXPER_RANGE_START       (EXPER+1)
 117 #define EXPER_RANGE_END         (EXPER+4)
 118 
 119 #define BUMP_MIB(s, x)          {                               \
 120         extern void __dtrace_probe___mib_##x(int, void *);      \
 121         void *stataddr = &((s)->x);                              \
 122         __dtrace_probe___mib_##x(1, stataddr);                  \
 123         (s)->x++;                                            \
 124 }


1769         Counter         sctpTimRetrans;
1770                 /* total # of retransmit timeouts dropping the connection */
1771         Counter         sctpTimRetransDrop;
1772                 /* total # of heartbeat probes */
1773         Counter         sctpTimHeartBeatProbe;
1774                 /* total # of heartbeat timeouts dropping the connection */
1775         Counter         sctpTimHeartBeatDrop;
1776                 /* total # of conns refused due to backlog full on listen */
1777         Counter         sctpListenDrop;
1778                 /* total # of pkts received after the association has closed */
1779         Counter         sctpInClosed;
1780         int             sctpEntrySize;
1781         int             sctpLocalEntrySize;
1782         int             sctpRemoteEntrySize;
1783 } mib2_sctp_t;
1784 
1785 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
1786 #pragma pack()
1787 #endif
1788 
































































































































1789 
1790 #ifdef  __cplusplus
1791 }
1792 #endif
1793 
1794 #endif  /* _INET_MIB2_H */


  79 #ifndef IPPROTO_MAX
  80 #define IPPROTO_MAX     256
  81 #endif
  82 
  83 #define MIB2_SYSTEM             (IPPROTO_MAX+1)
  84 #define MIB2_INTERFACES         (IPPROTO_MAX+2)
  85 #define MIB2_AT                 (IPPROTO_MAX+3)
  86 #define MIB2_IP                 (IPPROTO_MAX+4)
  87 #define MIB2_ICMP               (IPPROTO_MAX+5)
  88 #define MIB2_TCP                (IPPROTO_MAX+6)
  89 #define MIB2_UDP                (IPPROTO_MAX+7)
  90 #define MIB2_EGP                (IPPROTO_MAX+8)
  91 #define MIB2_CMOT               (IPPROTO_MAX+9)
  92 #define MIB2_TRANSMISSION       (IPPROTO_MAX+10)
  93 #define MIB2_SNMP               (IPPROTO_MAX+11)
  94 #define MIB2_IP6                (IPPROTO_MAX+12)
  95 #define MIB2_ICMP6              (IPPROTO_MAX+13)
  96 #define MIB2_TCP6               (IPPROTO_MAX+14)
  97 #define MIB2_UDP6               (IPPROTO_MAX+15)
  98 #define MIB2_SCTP               (IPPROTO_MAX+16)
  99 #define MIB2_DCCP               (IPPROTO_MAX+17)
 100 #define MIB2_DCCP6              (IPPROTO_MAX+18)
 101 
 102 /*
 103  * Define range of levels for use with MIB2_*
 104  */
 105 #define MIB2_RANGE_START        (IPPROTO_MAX+1)
 106 #define MIB2_RANGE_END          (IPPROTO_MAX+18)
 107 
 108 
 109 #define EXPER                   1024    /* experimental - not part of mib */
 110 #define EXPER_IGMP              (EXPER+1)
 111 #define EXPER_DVMRP             (EXPER+2)
 112 #define EXPER_RAWIP             (EXPER+3)
 113 #define EXPER_IP_AND_ALL_IRES   (EXPER+4)
 114 
 115 /*
 116  * Define range of levels for experimental use
 117  */
 118 #define EXPER_RANGE_START       (EXPER+1)
 119 #define EXPER_RANGE_END         (EXPER+4)
 120 
 121 #define BUMP_MIB(s, x)          {                               \
 122         extern void __dtrace_probe___mib_##x(int, void *);      \
 123         void *stataddr = &((s)->x);                              \
 124         __dtrace_probe___mib_##x(1, stataddr);                  \
 125         (s)->x++;                                            \
 126 }


1771         Counter         sctpTimRetrans;
1772                 /* total # of retransmit timeouts dropping the connection */
1773         Counter         sctpTimRetransDrop;
1774                 /* total # of heartbeat probes */
1775         Counter         sctpTimHeartBeatProbe;
1776                 /* total # of heartbeat timeouts dropping the connection */
1777         Counter         sctpTimHeartBeatDrop;
1778                 /* total # of conns refused due to backlog full on listen */
1779         Counter         sctpListenDrop;
1780                 /* total # of pkts received after the association has closed */
1781         Counter         sctpInClosed;
1782         int             sctpEntrySize;
1783         int             sctpLocalEntrySize;
1784         int             sctpRemoteEntrySize;
1785 } mib2_sctp_t;
1786 
1787 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
1788 #pragma pack()
1789 #endif
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 dccpTimRetrans;
1825         /* total # of retransmit timeouts dropping the connection */
1826         Counter dccpTimRetransDrop;
1827         /* total # of keepalive timeouts */
1828         Counter dccpTimKeepalive;
1829         /* total # of keepalive timeouts sending a probe */
1830         Counter dccpTimKeepaliveProbe;
1831         /* total # of keepalive timeouts dropping the connection */
1832         Counter dccpTimKeepaliveDrop;
1833 
1834         Counter dccpOutDataSegs;
1835         Counter dccpOutDataBytes;
1836 
1837         int     dccpEntrySize;
1838         int     dccp6EntrySize;
1839 
1840         int     dccpConnTableSize;
1841         int     dccp6ConnTableSize;
1842 
1843         Counter64       dccpHCInDatagrams;
1844         /* total # of segments recv'd                           { tcp 17 } */
1845         Counter64       dccpHCInSegs;
1846         /* total # of segments sent                             { tcp 18 } */
1847         Counter64       dccpHCOutSegs;
1848 } mib2_dccp_t;
1849 #define MIB_FIRST_NEW_ELM_mib2_dccp_t   dccpHCInDatagrams
1850 
1851 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
1852 #pragma pack()
1853 #endif
1854 
1855 /* Pack data to make struct size the same for 32- and 64-bits */
1856 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
1857 #pragma pack(4)
1858 #endif
1859 
1860 typedef struct mib2_dccpConnEntry {
1861         int             dccpConnState;
1862         IpAddress       dccpConnLocalAddress;
1863         int             dccpConnLocalPort;
1864         IpAddress       dccpConnRemAddress;
1865         int             dccpConnRemPort;
1866 
1867         struct dccpConnEntryInfo_s {
1868                                 /* current rto (retransmit timeout) */
1869                 Gauge           ce_rto;
1870                                 /* current max segment size */
1871                 Gauge           ce_mss;
1872                                 /* actual internal state */
1873                 int             ce_state;
1874         } dccpConnEntryInfo;
1875 
1876         uint32_t        dccpConnCreationProcess;
1877         uint64_t        dccpConnCreationTime;
1878 } mib2_dccpConnEntry_t;
1879 #define MIB_FIRST_NEW_ELM_mib2_dccpConnEntry_t  dccpConnCreationProcess
1880 
1881 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
1882 #pragma pack()
1883 #endif
1884 
1885 /* Pack data to make struct size the same for 32- and 64-bits */
1886 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
1887 #pragma pack(4)
1888 #endif
1889 
1890 typedef struct mib2_dccp6ConnEntry {
1891         Ip6Address      dccp6ConnLocalAddress;
1892         int             dccp6ConnLocalPort;
1893         Ip6Address      dccp6ConnRemAddress;
1894         int             dccp6ConnRemPort;
1895         /* Interface index or zero              { ipv6DccpConnEntry 5 } */
1896         DeviceIndex     dccp6ConnIfIndex;
1897         /* State of dccp6 connection            { ipv6DccpConnEntry 6 } RW */
1898         int             dccp6ConnState;
1899 
1900         struct dccp6ConnEntryInfo_s {
1901                                 /* current rto (retransmit timeout) */
1902                 Gauge           ce_rto;
1903                                 /* current max segment size */
1904                 Gauge           ce_mss;
1905                                 /* actual internal state */
1906                 int             ce_state;
1907         } dccp6ConnEntryInfo;
1908 
1909         /* PID of the processes that created this connection */
1910         uint32_t        dccp6ConnCreationProcess;
1911         /* System uptime when the connection was created */
1912         uint64_t        dccp6ConnCreationTime;
1913 } mib2_dccp6ConnEntry_t;
1914 #define MIB_FIRST_NEW_ELM_mib2_dccp6ConnEntry_t dccp6ConnCreationProcess
1915 
1916 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
1917 #pragma pack()
1918 #endif
1919 
1920 #ifdef  __cplusplus
1921 }
1922 #endif
1923 
1924 #endif  /* _INET_MIB2_H */