Print this page
%B


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


1770         Counter         sctpTimRetrans;
1771                 /* total # of retransmit timeouts dropping the connection */
1772         Counter         sctpTimRetransDrop;
1773                 /* total # of heartbeat probes */
1774         Counter         sctpTimHeartBeatProbe;
1775                 /* total # of heartbeat timeouts dropping the connection */
1776         Counter         sctpTimHeartBeatDrop;
1777                 /* total # of conns refused due to backlog full on listen */
1778         Counter         sctpListenDrop;
1779                 /* total # of pkts received after the association has closed */
1780         Counter         sctpInClosed;
1781         int             sctpEntrySize;
1782         int             sctpLocalEntrySize;
1783         int             sctpRemoteEntrySize;
1784 } mib2_sctp_t;
1785 
1786 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
1787 #pragma pack()
1788 #endif
1789 
1790 /*
1791  * the DCCP group
1792  */
1793 #define MIB2_DCCP_CONN          18
1794 
1795 #define MIB2_DCCP_closed        1
1796 #define MIB2_DCCP_listen        2
1797 
1798 /* Pack data to make struct size the same for 32- and 64-bits */
1799 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
1800 #pragma pack(4)
1801 #endif
1802 
1803 typedef struct mib2_dccp {
1804 
1805         Counter dccpActiveOpens;
1806 
1807         int     dccpEntrySize;
1808 } mib2_dccp_t;
1809 
1810 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
1811 #pragma pack()
1812 #endif
1813 
1814 /* Pack data to make struct size the same for 32- and 64-bits */
1815 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
1816 #pragma pack(4)
1817 #endif
1818 
1819 typedef struct mib2_dccpConnEntry {
1820         int             dccpConnState;
1821         IpAddress       dccpConnLocalAddress;
1822         int             dccpConnLocalPort;
1823         IpAddress       dccpConnRemAddress;
1824         int             dccpConnRemPort;
1825 
1826         uint32_t        dccpConnCreationProcess;
1827         uint64_t        dccpConnCreationTime;
1828 } mib2_dccpConnEntry_t;
1829 #define MIB_FIRST_NEW_ELM_mib2_dccpConnEntry_t  dccpConnCreationProcess
1830 
1831 #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
1832 #pragma pack()
1833 #endif
1834 
1835 #ifdef  __cplusplus
1836 }
1837 #endif
1838 
1839 #endif  /* _INET_MIB2_H */