[BACK]Return to mib.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / snmp

Diff for /src/usr.bin/snmp/mib.h between version 1.5 and 1.6

version 1.5, 2020/08/08 08:57:29 version 1.6, 2020/08/08 13:13:19
Line 31 
Line 31 
  * - optional: write the implementation in mib.c   * - optional: write the implementation in mib.c
  */   */
   
   #define MIB_ccitt                       0
 /* From the SNMPv2-SMI MIB */  /* From the SNMPv2-SMI MIB */
 #define MIB_iso                         1  #define MIB_iso                         1
 #define MIB_org                         MIB_iso, 3  #define MIB_org                         MIB_iso, 3
Line 39 
Line 40 
 #define MIB_directory                   MIB_internet, 1  #define MIB_directory                   MIB_internet, 1
 #define MIB_mgmt                        MIB_internet, 2  #define MIB_mgmt                        MIB_internet, 2
 #define MIB_mib_2                       MIB_mgmt, 1     /* XXX mib-2 */  #define MIB_mib_2                       MIB_mgmt, 1     /* XXX mib-2 */
   #define MIB_transmission                MIB_mib_2, 10
   #define MIB_experimental                MIB_internet, 3
   #define MIB_private                     MIB_internet, 4
   #define MIB_enterprises                 MIB_private, 1
   #define MIB_security                    MIB_internet, 5
   #define MIB_snmpV2                      MIB_internet, 6
   #define MIB_snmpDomains                 MIB_snmpV2, 1
   #define MIB_snmpProxys                  MIB_snmpV2, 2
   #define MIB_snmpModules                 MIB_snmpV2, 3
   #define MIB_zeroDotZero                 0, 0
   
 #define MIB_system                      MIB_mib_2, 1  #define MIB_system                      MIB_mib_2, 1
 #define OIDIDX_system                   7  #define OIDIDX_system                   7
 #define MIB_sysDescr                    MIB_system, 1  #define MIB_sysDescr                    MIB_system, 1
Line 57 
Line 69 
 #define MIB_sysORID                     MIB_sysOREntry, 2  #define MIB_sysORID                     MIB_sysOREntry, 2
 #define MIB_sysORDescr                  MIB_sysOREntry, 3  #define MIB_sysORDescr                  MIB_sysOREntry, 3
 #define MIB_sysORUpTime                 MIB_sysOREntry, 4  #define MIB_sysORUpTime                 MIB_sysOREntry, 4
 #define MIB_transmission                MIB_mib_2, 10  
 #define MIB_snmp                        MIB_mib_2, 11  #define MIB_snmp                        MIB_mib_2, 11
 #define OIDIDX_snmp                     7  #define OIDIDX_snmp                     7
 #define MIB_snmpInPkts                  MIB_snmp, 1  #define MIB_snmpInPkts                  MIB_snmp, 1
Line 90 
Line 101 
 #define MIB_snmpEnableAuthenTraps       MIB_snmp, 30  #define MIB_snmpEnableAuthenTraps       MIB_snmp, 30
 #define MIB_snmpSilentDrops             MIB_snmp, 31  #define MIB_snmpSilentDrops             MIB_snmp, 31
 #define MIB_snmpProxyDrops              MIB_snmp, 32  #define MIB_snmpProxyDrops              MIB_snmp, 32
 #define MIB_experimental                MIB_internet, 3  
 #define MIB_private                     MIB_internet, 4  
 #define MIB_enterprises                 MIB_private, 1  
 #define MIB_security                    MIB_internet, 5  
 #define MIB_snmpV2                      MIB_internet, 6  
 #define MIB_snmpDomains                 MIB_snmpV2, 1  
 #define MIB_snmpProxies                 MIB_snmpV2, 2  
 #define MIB_snmpModules                 MIB_snmpV2, 3  
 #define MIB_snmpMIB                     MIB_snmpModules, 1  #define MIB_snmpMIB                     MIB_snmpModules, 1
 #define MIB_snmpMIBObjects              MIB_snmpMIB, 1  #define MIB_snmpMIBObjects              MIB_snmpMIB, 1
 #define MIB_snmpTrap                    MIB_snmpMIBObjects, 4  #define MIB_snmpTrap                    MIB_snmpMIBObjects, 4
Line 776 
Line 779 
 #define MIB_localTest                   MIB_openBSD, 42  #define MIB_localTest                   MIB_openBSD, 42
   
 #define MIB_TREE                        {               \  #define MIB_TREE                        {               \
           { MIBDECL(ccitt) },                             \
                                                           \
         { MIBDECL(iso) },                               \          { MIBDECL(iso) },                               \
         { MIBDECL(org) },                               \          { MIBDECL(org) },                               \
         { MIBDECL(dod) },                               \          { MIBDECL(dod) },                               \
Line 783 
Line 788 
         { MIBDECL(directory) },                         \          { MIBDECL(directory) },                         \
         { MIBDECL(mgmt) },                              \          { MIBDECL(mgmt) },                              \
         { MIBDECL(mib_2) },                             \          { MIBDECL(mib_2) },                             \
           { MIBDECL(transmission) },                      \
           { MIBDECL(experimental) },                      \
           { MIBDECL(private) },                           \
           { MIBDECL(enterprises) },                       \
           { MIBDECL(security) },                          \
           { MIBDECL(snmpV2) },                            \
           { MIBDECL(snmpDomains) },                       \
           { MIBDECL(snmpProxys) },                        \
           { MIBDECL(snmpModules) },                       \
           { MIBDECL(zeroDotZero) },                       \
                                                           \
         { MIBDECL(system) },                            \          { MIBDECL(system) },                            \
         { MIBDECL(sysDescr) },                          \          { MIBDECL(sysDescr) },                          \
         { MIBDECL(sysOID) },                            \          { MIBDECL(sysOID) },                            \
Line 798 
Line 814 
         { MIBDECL(sysORID) },                           \          { MIBDECL(sysORID) },                           \
         { MIBDECL(sysORDescr) },                        \          { MIBDECL(sysORDescr) },                        \
         { MIBDECL(sysORUpTime) },                       \          { MIBDECL(sysORUpTime) },                       \
         { MIBDECL(transmission) },                      \  
         { MIBDECL(snmp) },                              \          { MIBDECL(snmp) },                              \
         { MIBDECL(snmpInPkts) },                        \          { MIBDECL(snmpInPkts) },                        \
         { MIBDECL(snmpOutPkts) },                       \          { MIBDECL(snmpOutPkts) },                       \
Line 830 
Line 845 
         { MIBDECL(snmpEnableAuthenTraps) },             \          { MIBDECL(snmpEnableAuthenTraps) },             \
         { MIBDECL(snmpSilentDrops) },                   \          { MIBDECL(snmpSilentDrops) },                   \
         { MIBDECL(snmpProxyDrops) },                    \          { MIBDECL(snmpProxyDrops) },                    \
         { MIBDECL(experimental) },                      \  
         { MIBDECL(private) },                           \  
         { MIBDECL(enterprises) },                       \  
         { MIBDECL(security) },                          \  
         { MIBDECL(snmpV2) },                            \  
         { MIBDECL(snmpDomains) },                       \  
         { MIBDECL(snmpProxies) },                       \  
         { MIBDECL(snmpModules) },                       \  
         { MIBDECL(snmpMIB) },                           \          { MIBDECL(snmpMIB) },                           \
         { MIBDECL(snmpMIBObjects) },                    \          { MIBDECL(snmpMIBObjects) },                    \
         { MIBDECL(snmpTrap) },                          \          { MIBDECL(snmpTrap) },                          \

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6