' ########################################################################################
' Microsoft Windows
' File: Ipifcons.inc
' Contents: Constants needed for the Interface Object
' Copyright (c) 2011 Jos? Roca
' Portions Copyright (c) Microsoft Corporation.
' All Rights Reserved.
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
' ########################################################################################
#IF NOT %DEF(PBX_Ipifcons_PBI)
#DEFINE PBX_Ipifcons_PBI
%EQUATE `IPIFCONS_INC = 1
'//////////////////////////////////////////////////////////////////////////////
'// //
'// Media types //
'// //
'// These are enumerated values of the ifType object defined in MIB-II's //
'// ifTable. They are registered with IANA which publishes this list //
'// periodically, in either the Assigned Numbers RFC, or some derivative //
'// of it specific to Internet Network Management number assignments. //
'// See ftp://ftp.isi.edu/mib/ianaiftype.mib //
'// //
'//////////////////////////////////////////////////////////////////////////////
%EQUATE `MIN_IF_TYPE = 1
%EQUATE `IF_TYPE_OTHER = 1 ' None of the below
%EQUATE `IF_TYPE_REGULAR_1822 = 2
%EQUATE `IF_TYPE_HDH_1822 = 3
%EQUATE `IF_TYPE_DDN_X25 = 4
%EQUATE `IF_TYPE_RFC877_X25 = 5
%EQUATE `IF_TYPE_ETHERNET_CSMACD = 6
%EQUATE `IF_TYPE_IS088023_CSMACD = 7
%EQUATE `IF_TYPE_ISO88024_TOKENBUS = 8
%EQUATE `IF_TYPE_ISO88025_TOKENRING = 9
%EQUATE `IF_TYPE_ISO88026_MAN = 10
%EQUATE `IF_TYPE_STARLAN = 11
%EQUATE `IF_TYPE_PROTEON_10MBIT = 12
%EQUATE `IF_TYPE_PROTEON_80MBIT = 13
%EQUATE `IF_TYPE_HYPERCHANNEL = 14
%EQUATE `IF_TYPE_FDDI = 15
%EQUATE `IF_TYPE_LAP_B = 16
%EQUATE `IF_TYPE_SDLC = 17
%EQUATE `IF_TYPE_DS1 = 18 ' DS1-MIB
%EQUATE `IF_TYPE_E1 = 19 ' Obsolete; see DS1-MIB
%EQUATE `IF_TYPE_BASIC_ISDN = 20
%EQUATE `IF_TYPE_PRIMARY_ISDN = 21
%EQUATE `IF_TYPE_PROP_POINT2POINT_SERIAL = 22 ' proprietary serial
%EQUATE `IF_TYPE_PPP = 23
%EQUATE `IF_TYPE_SOFTWARE_LOOPBACK = 24
%EQUATE `IF_TYPE_EON = 25 ' CLNP over IP
%EQUATE `IF_TYPE_ETHERNET_3MBIT = 26
%EQUATE `IF_TYPE_NSIP = 27 ' XNS over IP
%EQUATE `IF_TYPE_SLIP = 28 ' Generic Slip
%EQUATE `IF_TYPE_ULTRA = 29 ' ULTRA Technologies
%EQUATE `IF_TYPE_DS3 = 30 ' DS3-MIB
%EQUATE `IF_TYPE_SIP = 31 ' SMDS, coffee
%EQUATE `IF_TYPE_FRAMERELAY = 32 ' DTE only
%EQUATE `IF_TYPE_RS232 = 33
%EQUATE `IF_TYPE_PARA = 34 ' Parallel port
%EQUATE `IF_TYPE_ARCNET = 35
%EQUATE `IF_TYPE_ARCNET_PLUS = 36
%EQUATE `IF_TYPE_ATM = 37 ' ATM cells
%EQUATE `IF_TYPE_MIO_X25 = 38
%EQUATE `IF_TYPE_SONET = 39 ' SONET or SDH
%EQUATE `IF_TYPE_X25_PLE = 40
%EQUATE `IF_TYPE_ISO88022_LLC = 41
%EQUATE `IF_TYPE_LOCALTALK = 42
%EQUATE `IF_TYPE_SMDS_DXI = 43
%EQUATE `IF_TYPE_FRAMERELAY_SERVICE = 44 ' FRNETSERV-MIB
%EQUATE `IF_TYPE_V35 = 45
%EQUATE `IF_TYPE_HSSI = 46
%EQUATE `IF_TYPE_HIPPI = 47
%EQUATE `IF_TYPE_MODEM = 48 ' Generic Modem
%EQUATE `IF_TYPE_AAL5 = 49 ' AAL5 over ATM
%EQUATE `IF_TYPE_SONET_PATH = 50
%EQUATE `IF_TYPE_SONET_VT = 51
%EQUATE `IF_TYPE_SMDS_ICIP = 52 ' SMDS InterCarrier Interface
%EQUATE `IF_TYPE_PROP_VIRTUAL = 53 ' Proprietary virtual/internal
%EQUATE `IF_TYPE_PROP_MULTIPLEXOR = 54 ' Proprietary multiplexing
%EQUATE `IF_TYPE_IEEE80212 = 55 ' 100BaseVG
%EQUATE `IF_TYPE_FIBRECHANNEL = 56
%EQUATE `IF_TYPE_HIPPIINTERFACE = 57
%EQUATE `IF_TYPE_FRAMERELAY_INTERCONNECT = 58 ' Obsolete, use 32 or 44
%EQUATE `IF_TYPE_AFLANE_8023 = 59 ' ATM Emulated LAN for 802.3
%EQUATE `IF_TYPE_AFLANE_8025 = 60 ' ATM Emulated LAN for 802.5
%EQUATE `IF_TYPE_CCTEMUL = 61 ' ATM Emulated circuit
%EQUATE `IF_TYPE_FASTETHER = 62 ' Fast Ethernet (100BaseT)
%EQUATE `IF_TYPE_ISDN = 63 ' ISDN and X.25
%EQUATE `IF_TYPE_V11 = 64 ' CCITT V.11/X.21
%EQUATE `IF_TYPE_V36 = 65 ' CCITT V.36
%EQUATE `IF_TYPE_G703_64K = 66 ' CCITT G703 at 64Kbps
%EQUATE `IF_TYPE_G703_2MB = 67 ' Obsolete; see DS1-MIB
%EQUATE `IF_TYPE_QLLC = 68 ' SNA QLLC
%EQUATE `IF_TYPE_FASTETHER_FX = 69 ' Fast Ethernet (100BaseFX)
%EQUATE `IF_TYPE_CHANNEL = 70
%EQUATE `IF_TYPE_IEEE80211 = 71 ' Radio spread spectrum
%EQUATE `IF_TYPE_IBM370PARCHAN = 72 ' IBM System 360/370 OEMI Channel
%EQUATE `IF_TYPE_ESCON = 73 ' IBM Enterprise Systems Connection
%EQUATE `IF_TYPE_DLSW = 74 ' Data Link Switching
%EQUATE `IF_TYPE_ISDN_S = 75 ' ISDN S/T interface
%EQUATE `IF_TYPE_ISDN_U = 76 ' ISDN U interface
%EQUATE `IF_TYPE_LAP_D = 77 ' Link Access Protocol D
%EQUATE `IF_TYPE_IPSWITCH = 78 ' IP Switching Objects
%EQUATE `IF_TYPE_RSRB = 79 ' Remote Source Route Bridging
%EQUATE `IF_TYPE_ATM_LOGICAL = 80 ' ATM Logical Port
%EQUATE `IF_TYPE_DS0 = 81 ' Digital Signal Level 0
%EQUATE `IF_TYPE_DS0_BUNDLE = 82 ' Group of ds0s on the same ds1
%EQUATE `IF_TYPE_BSC = 83 ' Bisynchronous Protocol
%EQUATE `IF_TYPE_ASYNC = 84 ' Asynchronous Protocol
%EQUATE `IF_TYPE_CNR = 85 ' Combat Net Radio
%EQUATE `IF_TYPE_ISO88025R_DTR = 86 ' ISO 802.5r DTR
%EQUATE `IF_TYPE_EPLRS = 87 ' Ext Pos Loc Report Sys
%EQUATE `IF_TYPE_ARAP = 88 ' Appletalk Remote Access Protocol
%EQUATE `IF_TYPE_PROP_CNLS = 89 ' Proprietary Connectionless Proto
%EQUATE `IF_TYPE_HOSTPAD = 90 ' CCITT-ITU X.29 PAD Protocol
%EQUATE `IF_TYPE_TERMPAD = 91 ' CCITT-ITU X.3 PAD Facility
%EQUATE `IF_TYPE_FRAMERELAY_MPI = 92 ' Multiproto Interconnect over FR
%EQUATE `IF_TYPE_X213 = 93 ' CCITT-ITU X213
%EQUATE `IF_TYPE_ADSL = 94 ' Asymmetric Digital Subscrbr Loop
%EQUATE `IF_TYPE_RADSL = 95 ' Rate-Adapt Digital Subscrbr Loop
%EQUATE `IF_TYPE_SDSL = 96 ' Symmetric Digital Subscriber Loop
%EQUATE `IF_TYPE_VDSL = 97 ' Very H-Speed Digital Subscrb Loop
%EQUATE `IF_TYPE_ISO88025_CRFPRINT = 98 ' ISO 802.5 CRFP
%EQUATE `IF_TYPE_MYRINET = 99 ' Myricom Myrinet
%EQUATE `IF_TYPE_VOICE_EM = 100 ' Voice recEive and transMit
%EQUATE `IF_TYPE_VOICE_FXO = 101 ' Voice Foreign Exchange Office
%EQUATE `IF_TYPE_VOICE_FXS = 102 ' Voice Foreign Exchange Station
%EQUATE `IF_TYPE_VOICE_ENCAP = 103 ' Voice encapsulation
%EQUATE `IF_TYPE_VOICE_OVERIP = 104 ' Voice over IP encapsulation
%EQUATE `IF_TYPE_ATM_DXI = 105 ' ATM DXI
%EQUATE `IF_TYPE_ATM_FUNI = 106 ' ATM FUNI
%EQUATE `IF_TYPE_ATM_IMA = 107 ' ATM IMA
%EQUATE `IF_TYPE_PPPMULTILINKBUNDLE = 108 ' PPP Multilink Bundle
%EQUATE `IF_TYPE_IPOVER_CDLC = 109 ' IBM ipOverCdlc
%EQUATE `IF_TYPE_IPOVER_CLAW = 110 ' IBM Common Link Access to Workstn
%EQUATE `IF_TYPE_STACKTOSTACK = 111 ' IBM stackToStack
%EQUATE `IF_TYPE_VIRTUALIPADDRESS = 112 ' IBM VIPA
%EQUATE `IF_TYPE_MPC = 113 ' IBM multi-proto channel support
%EQUATE `IF_TYPE_IPOVER_ATM = 114 ' IBM ipOverAtm
%EQUATE `IF_TYPE_ISO88025_FIBER = 115 ' ISO 802.5j Fiber Token Ring
%EQUATE `IF_TYPE_TDLC = 116 ' IBM twinaxial data link control
%EQUATE `IF_TYPE_GIGABITETHERNET = 117
%EQUATE `IF_TYPE_HDLC = 118
%EQUATE `IF_TYPE_LAP_F = 119
%EQUATE `IF_TYPE_V37 = 120
%EQUATE `IF_TYPE_X25_MLP = 121 ' Multi-Link Protocol
%EQUATE `IF_TYPE_X25_HUNTGROUP = 122 ' X.25 Hunt Group
%EQUATE `IF_TYPE_TRANSPHDLC = 123
%EQUATE `IF_TYPE_INTERLEAVE = 124 ' Interleave channel
%EQUATE `IF_TYPE_FAST = 125 ' Fast channel
%EQUATE `IF_TYPE_IP = 126 ' IP (for APPN HPR in IP networks)
%EQUATE `IF_TYPE_DOCSCABLE_MACLAYER = 127 ' CATV Mac Layer
%EQUATE `IF_TYPE_DOCSCABLE_DOWNSTREAM = 128 ' CATV Downstream interface
%EQUATE `IF_TYPE_DOCSCABLE_UPSTREAM = 129 ' CATV Upstream interface
%EQUATE `IF_TYPE_A12MPPSWITCH = 130 ' Avalon Parallel Processor
%EQUATE `IF_TYPE_TUNNEL = 131 ' Encapsulation interface
%EQUATE `IF_TYPE_COFFEE = 132 ' Coffee pot
%EQUATE `IF_TYPE_CES = 133 ' Circuit Emulation Service
%EQUATE `IF_TYPE_ATM_SUBINTERFACE = 134 ' ATM Sub Interface
%EQUATE `IF_TYPE_L2_VLAN = 135 ' Layer 2 Virtual LAN using 802.1Q
%EQUATE `IF_TYPE_L3_IPVLAN = 136 ' Layer 3 Virtual LAN using IP
%EQUATE `IF_TYPE_L3_IPXVLAN = 137 ' Layer 3 Virtual LAN using IPX
%EQUATE `IF_TYPE_DIGITALPOWERLINE = 138 ' IP over Power Lines
%EQUATE `IF_TYPE_MEDIAMAILOVERIP = 139 ' Multimedia Mail over IP
%EQUATE `IF_TYPE_DTM = 140 ' Dynamic syncronous Transfer Mode
%EQUATE `IF_TYPE_DCN = 141 ' Data Communications Network
%EQUATE `IF_TYPE_IPFORWARD = 142 ' IP Forwarding Interface
%EQUATE `IF_TYPE_MSDSL = 143 ' Multi-rate Symmetric DSL
%EQUATE `IF_TYPE_IEEE1394 = 144 ' IEEE1394 High Perf Serial Bus
'%IF_TYPE_RECEIVE_ONLY = 145 ' TV adapter type (Windows XP SDK)
%EQUATE `IF_TYPE_IF_GSN = 145
%EQUATE `IF_TYPE_DVBRCC_MACLAYER = 146
%EQUATE `IF_TYPE_DVBRCC_DOWNSTREAM = 147
%EQUATE `IF_TYPE_DVBRCC_UPSTREAM = 148
%EQUATE `IF_TYPE_ATM_VIRTUAL = 149
%EQUATE `IF_TYPE_MPLS_TUNNEL = 150
%EQUATE `IF_TYPE_SRP = 151
%EQUATE `IF_TYPE_VOICEOVERATM = 152
%EQUATE `IF_TYPE_VOICEOVERFRAMERELAY = 153
%EQUATE `IF_TYPE_IDSL = 154
%EQUATE `IF_TYPE_COMPOSITELINK = 155
%EQUATE `IF_TYPE_SS7_SIGLINK = 156
%EQUATE `IF_TYPE_PROP_WIRELESS_P2P = 157
%EQUATE `IF_TYPE_FR_FORWARD = 158
%EQUATE `IF_TYPE_RFC1483 = 159
%EQUATE `IF_TYPE_USB = 160
%EQUATE `IF_TYPE_IEEE8023AD_LAG = 161
%EQUATE `IF_TYPE_BGP_POLICY_ACCOUNTING = 162
%EQUATE `IF_TYPE_FRF16_MFR_BUNDLE = 163
%EQUATE `IF_TYPE_H323_GATEKEEPER = 164
%EQUATE `IF_TYPE_H323_PROXY = 165
%EQUATE `IF_TYPE_MPLS = 166
%EQUATE `IF_TYPE_MF_SIGLINK = 167
%EQUATE `IF_TYPE_HDSL2 = 168
%EQUATE `IF_TYPE_SHDSL = 169
%EQUATE `IF_TYPE_DS1_FDL = 170
%EQUATE `IF_TYPE_POS = 171
%EQUATE `IF_TYPE_DVB_ASI_IN = 172
%EQUATE `IF_TYPE_DVB_ASI_OUT = 173
%EQUATE `IF_TYPE_PLC = 174
%EQUATE `IF_TYPE_NFAS = 175
%EQUATE `IF_TYPE_TR008 = 176
%EQUATE `IF_TYPE_GR303_RDT = 177
%EQUATE `IF_TYPE_GR303_IDT = 178
%EQUATE `IF_TYPE_ISUP = 179
%EQUATE `IF_TYPE_PROP_DOCS_WIRELESS_MACLAYER = 180
%EQUATE `IF_TYPE_PROP_DOCS_WIRELESS_DOWNSTREAM = 181
%EQUATE `IF_TYPE_PROP_DOCS_WIRELESS_UPSTREAM = 182
%EQUATE `IF_TYPE_HIPERLAN2 = 183
%EQUATE `IF_TYPE_PROP_BWA_P2MP = 184
%EQUATE `IF_TYPE_SONET_OVERHEAD_CHANNEL = 185
%EQUATE `IF_TYPE_DIGITAL_WRAPPER_OVERHEAD_CHANNEL = 186
%EQUATE `IF_TYPE_AAL2 = 187
%EQUATE `IF_TYPE_RADIO_MAC = 188
%EQUATE `IF_TYPE_ATM_RADIO = 189
%EQUATE `IF_TYPE_IMT = 190
%EQUATE `IF_TYPE_MVL = 191
%EQUATE `IF_TYPE_REACH_DSL = 192
%EQUATE `IF_TYPE_FR_DLCI_ENDPT = 193
%EQUATE `IF_TYPE_ATM_VCI_ENDPT = 194
%EQUATE `IF_TYPE_OPTICAL_CHANNEL = 195
%EQUATE `IF_TYPE_OPTICAL_TRANSPORT = 196
%EQUATE `IF_TYPE_IEEE80216_WMAN = 237
%EQUATE `IF_TYPE_WWANPP = 243 ' // WWAN devices based on GSM technology
%EQUATE `IF_TYPE_WWANPP2 = 244 ' // WWAN devices based on CDMA technology
%EQUATE `MAX_IF_TYPE = 244
'typedef ULONG IFTYPE;
'//////////////////////////////////////////////////////////////////////////////
'// //
'// Access types //
'// //
'//////////////////////////////////////////////////////////////////////////////
%EQUATE `IF_ACCESS_LOOPBACK = 1
%EQUATE `IF_ACCESS_BROADCAST = 2
%EQUATE `IF_ACCESS_POINT_TO_POINT = 3 ' // New definition.
%EQUATE `IF_ACCESS_POINTTOPOINT = 3 ' // Old definition.
%EQUATE `IF_ACCESS_POINT_TO_MULTI_POINT = 4 ' // New definition.
%EQUATE `IF_ACCESS_POINTTOMULTIPOINT = 4 ' // Old definition.
'//////////////////////////////////////////////////////////////////////////////
'// //
'// Interface Capabilities (bit flags) //
'// //
'//////////////////////////////////////////////////////////////////////////////
%EQUATE `IF_CHECK_NONE = &H00
%EQUATE `IF_CHECK_MCAST = &H01
%EQUATE `IF_CHECK_SEND = &H02
'//////////////////////////////////////////////////////////////////////////////
'// //
'// Connection Types //
'// //
'//////////////////////////////////////////////////////////////////////////////
%EQUATE `IF_CONNECTION_DEDICATED = 1
%EQUATE `IF_CONNECTION_PASSIVE = 2
%EQUATE `IF_CONNECTION_DEMAND = 3
%EQUATE `IF_ADMIN_STATUS_UP = 1
%EQUATE `IF_ADMIN_STATUS_DOWN = 2
%EQUATE `IF_ADMIN_STATUS_TESTING = 3
'//////////////////////////////////////////////////////////////////////////////
'// //
'// The following are the the operational states for WAN and LAN interfaces. //
'// The order of the states seems weird, but is done for a purpose. All //
'// states >= CONNECTED can transmit data right away. States >= DISCONNECTED //
'// can tx data but some set up might be needed. States < DISCONNECTED can //
'// not transmit data. //
'// A card is marked UNREACHABLE if DIM calls InterfaceUnreachable for //
'// reasons other than failure to connect. //
'// //
'// NON_OPERATIONAL -- Valid for LAN Interfaces. Means the card is not //
'// working or not plugged in or has no address. //
'// UNREACHABLE -- Valid for WAN Interfaces. Means the remote site is //
'// not reachable at this time. //
'// DISCONNECTED -- Valid for WAN Interfaces. Means the remote site is //
'// not connected at this time. //
'// CONNECTING -- Valid for WAN Interfaces. Means a connection attempt //
'// has been initiated to the remote site. //
'// CONNECTED -- Valid for WAN Interfaces. Means the remote site is //
'// connected. //
'// OPERATIONAL -- Valid for LAN Interfaces. Means the card is plugged //
'// in and working. //
'// //
'// It is the users duty to convert these values to MIB-II values if they //
'// are to be used by a subagent //
'// //
'//////////////////////////////////////////////////////////////////////////////
%EQUATE `IF_OPER_STATUS_NON_OPERATIONAL = 0
%EQUATE `IF_OPER_STATUS_UNREACHABLE = 1
%EQUATE `IF_OPER_STATUS_DISCONNECTED = 2
%EQUATE `IF_OPER_STATUS_CONNECTING = 3
%EQUATE `IF_OPER_STATUS_CONNECTED = 4
%EQUATE `IF_OPER_STATUS_OPERATIONAL = 5
%EQUATE `MIB_IF_TYPE_OTHER = 1
%EQUATE `MIB_IF_TYPE_ETHERNET = 6
%EQUATE `MIB_IF_TYPE_TOKENRING = 9
%EQUATE `MIB_IF_TYPE_FDDI = 15
%EQUATE `MIB_IF_TYPE_PPP = 23
%EQUATE `MIB_IF_TYPE_LOOPBACK = 24
%EQUATE `MIB_IF_TYPE_SLIP = 28
%EQUATE `MIB_IF_ADMIN_STATUS_UP = 1
%EQUATE `MIB_IF_ADMIN_STATUS_DOWN = 2
%EQUATE `MIB_IF_ADMIN_STATUS_TESTING = 3
%EQUATE `MIB_IF_OPER_STATUS_NON_OPERATIONAL = 0 ' IF_OPER_STATUS_NON_OPERATIONAL
%EQUATE `MIB_IF_OPER_STATUS_UNREACHABLE = 1 ' IF_OPER_STATUS_UNREACHABLE
%EQUATE `MIB_IF_OPER_STATUS_DISCONNECTED = 2 ' IF_OPER_STATUS_DISCONNECTED
%EQUATE `MIB_IF_OPER_STATUS_CONNECTING = 3 ' IF_OPER_STATUS_CONNECTING
%EQUATE `MIB_IF_OPER_STATUS_CONNECTED = 4 ' IF_OPER_STATUS_CONNECTED
%EQUATE `MIB_IF_OPER_STATUS_OPERATIONAL = 5 ' IF_OPER_STATUS_OPERATIONAL
#ENDIF
