JwaIpIfCons.pas
上传用户:davidchvip
上传日期:2009-07-28
资源大小:1749k
文件大小:23k
源码类别:

Windows编程

开发平台:

Delphi

  1. {******************************************************************************}
  2. {                                                                       }
  3. { Internet Protocol Helper API interface Unit for Object Pascal                }
  4. {                                                                       }
  5. { Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft          }
  6. { Corporation. All Rights Reserved.                                            }
  7. {                 }
  8. { The original file is: ipifcons.h, released August 2001. The original Pascal  }
  9. { code is: IpIfCons.pas, released September 2000. The initial developer of the }
  10. { Pascal code is Marcel van Brakel (brakelm@chello.nl).                        }
  11. {                                                                              }
  12. { Portions created by Marcel van Brakel are Copyright (C) 1999-2001            }
  13. { Marcel van Brakel. All Rights Reserved.                                      }
  14. {                 }
  15. { Contributor(s): John C. Penman (jcp@craiglockhart.com)                       }
  16. {                 Vladimir Vassiliev (voldemarv@hotpop.com)                    }
  17. {                 }
  18. { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI)        }
  19. {                }
  20. { You may retrieve the latest version of this file at the Project JEDI home    }
  21. { page, located at http://delphi-jedi.org or my personal homepage located at   }
  22. { http://members.chello.nl/m.vanbrakel2                                        }
  23. {                }
  24. { The contents of this file are used with permission, subject to the Mozilla   }
  25. { Public License Version 1.1 (the "License"); you may not use this file except }
  26. { in compliance with the License. You may obtain a copy of the License at      }
  27. { http://www.mozilla.org/MPL/MPL-1.1.html                                      }
  28. {                                                                              }
  29. { Software distributed under the License is distributed on an "AS IS" basis,   }
  30. { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
  31. { the specific language governing rights and limitations under the License.    }
  32. {                                                                              }
  33. { Alternatively, the contents of this file may be used under the terms of the  }
  34. { GNU Lesser General Public License (the  "LGPL License"), in which case the   }
  35. { provisions of the LGPL License are applicable instead of those above.        }
  36. { If you wish to allow use of your version of this file only under the terms   }
  37. { of the LGPL License and not to allow others to use your version of this file }
  38. { under the MPL, indicate your decision by deleting  the provisions above and  }
  39. { replace  them with the notice and other provisions required by the LGPL      }
  40. { License.  If you do not delete the provisions above, a recipient may use     }
  41. { your version of this file under either the MPL or the LGPL License.          }
  42. {                 }
  43. { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
  44. {                 }
  45. {******************************************************************************}
  46. unit JwaIpIfCons;
  47. {$WEAKPACKAGEUNIT}
  48. {$HPPEMIT ''}
  49. {$HPPEMIT '#include "ipifcons.h"'}
  50. {$HPPEMIT ''}
  51. {$I WINDEFINES.INC}
  52. interface
  53. //////////////////////////////////////////////////////////////////////////////
  54. //                                                                          //
  55. // Media types                                                              //
  56. //                                                                          //
  57. //////////////////////////////////////////////////////////////////////////////
  58. const
  59.   MIN_IF_TYPE = 1;
  60.   {$EXTERNALSYM MIN_IF_TYPE}
  61.   IF_TYPE_OTHER                   = 1; // None of the below
  62.   {$EXTERNALSYM IF_TYPE_OTHER}
  63.   IF_TYPE_REGULAR_1822            = 2;
  64.   {$EXTERNALSYM IF_TYPE_REGULAR_1822}
  65.   IF_TYPE_HDH_1822                = 3;
  66.   {$EXTERNALSYM IF_TYPE_HDH_1822}
  67.   IF_TYPE_DDN_X25                 = 4;
  68.   {$EXTERNALSYM IF_TYPE_DDN_X25}
  69.   IF_TYPE_RFC877_X25              = 5;
  70.   {$EXTERNALSYM IF_TYPE_RFC877_X25}
  71.   IF_TYPE_ETHERNET_CSMACD         = 6;
  72.   {$EXTERNALSYM IF_TYPE_ETHERNET_CSMACD}
  73.   IF_TYPE_IS088023_CSMACD         = 7;
  74.   {$EXTERNALSYM IF_TYPE_IS088023_CSMACD}
  75.   IF_TYPE_ISO88024_TOKENBUS       = 8;
  76.   {$EXTERNALSYM IF_TYPE_ISO88024_TOKENBUS}
  77.   IF_TYPE_ISO88025_TOKENRING      = 9;
  78.   {$EXTERNALSYM IF_TYPE_ISO88025_TOKENRING}
  79.   IF_TYPE_ISO88026_MAN            = 10;
  80.   {$EXTERNALSYM IF_TYPE_ISO88026_MAN}
  81.   IF_TYPE_STARLAN                 = 11;
  82.   {$EXTERNALSYM IF_TYPE_STARLAN}
  83.   IF_TYPE_PROTEON_10MBIT          = 12;
  84.   {$EXTERNALSYM IF_TYPE_PROTEON_10MBIT}
  85.   IF_TYPE_PROTEON_80MBIT          = 13;
  86.   {$EXTERNALSYM IF_TYPE_PROTEON_80MBIT}
  87.   IF_TYPE_HYPERCHANNEL            = 14;
  88.   {$EXTERNALSYM IF_TYPE_HYPERCHANNEL}
  89.   IF_TYPE_FDDI                    = 15;
  90.   {$EXTERNALSYM IF_TYPE_FDDI}
  91.   IF_TYPE_LAP_B                   = 16;
  92.   {$EXTERNALSYM IF_TYPE_LAP_B}
  93.   IF_TYPE_SDLC                    = 17;
  94.   {$EXTERNALSYM IF_TYPE_SDLC}
  95.   IF_TYPE_DS1                     = 18; // DS1-MIB
  96.   {$EXTERNALSYM IF_TYPE_DS1}
  97.   IF_TYPE_E1                      = 19; // Obsolete; see DS1-MIB
  98.   {$EXTERNALSYM IF_TYPE_E1}
  99.   IF_TYPE_BASIC_ISDN              = 20;
  100.   {$EXTERNALSYM IF_TYPE_BASIC_ISDN}
  101.   IF_TYPE_PRIMARY_ISDN            = 21;
  102.   {$EXTERNALSYM IF_TYPE_PRIMARY_ISDN}
  103.   IF_TYPE_PROP_POINT2POINT_SERIAL = 22; // proprietary serial
  104.   {$EXTERNALSYM IF_TYPE_PROP_POINT2POINT_SERIAL}
  105.   IF_TYPE_PPP                     = 23;
  106.   {$EXTERNALSYM IF_TYPE_PPP}
  107.   IF_TYPE_SOFTWARE_LOOPBACK       = 24;
  108.   {$EXTERNALSYM IF_TYPE_SOFTWARE_LOOPBACK}
  109.   IF_TYPE_EON                     = 25; // CLNP over IP
  110.   {$EXTERNALSYM IF_TYPE_EON}
  111.   IF_TYPE_ETHERNET_3MBIT          = 26;
  112.   {$EXTERNALSYM IF_TYPE_ETHERNET_3MBIT}
  113.   IF_TYPE_NSIP                    = 27; // XNS over IP
  114.   {$EXTERNALSYM IF_TYPE_NSIP}
  115.   IF_TYPE_SLIP                    = 28; // Generic Slip
  116.   {$EXTERNALSYM IF_TYPE_SLIP}
  117.   IF_TYPE_ULTRA                   = 29; // ULTRA Technologies
  118.   {$EXTERNALSYM IF_TYPE_ULTRA}
  119.   IF_TYPE_DS3                     = 30; // DS3-MIB
  120.   {$EXTERNALSYM IF_TYPE_DS3}
  121.   IF_TYPE_SIP                     = 31; // SMDS, coffee
  122.   {$EXTERNALSYM IF_TYPE_SIP}
  123.   IF_TYPE_FRAMERELAY              = 32; // DTE only
  124.   {$EXTERNALSYM IF_TYPE_FRAMERELAY}
  125.   IF_TYPE_RS232                   = 33;
  126.   {$EXTERNALSYM IF_TYPE_RS232}
  127.   IF_TYPE_PARA                    = 34; // Parallel port
  128.   {$EXTERNALSYM IF_TYPE_PARA}
  129.   IF_TYPE_ARCNET                  = 35;
  130.   {$EXTERNALSYM IF_TYPE_ARCNET}
  131.   IF_TYPE_ARCNET_PLUS             = 36;
  132.   {$EXTERNALSYM IF_TYPE_ARCNET_PLUS}
  133.   IF_TYPE_ATM                     = 37; // ATM cells
  134.   {$EXTERNALSYM IF_TYPE_ATM}
  135.   IF_TYPE_MIO_X25                 = 38;
  136.   {$EXTERNALSYM IF_TYPE_MIO_X25}
  137.   IF_TYPE_SONET                   = 39; // SONET or SDH
  138.   {$EXTERNALSYM IF_TYPE_SONET}
  139.   IF_TYPE_X25_PLE                 = 40;
  140.   {$EXTERNALSYM IF_TYPE_X25_PLE}
  141.   IF_TYPE_ISO88022_LLC            = 41;
  142.   {$EXTERNALSYM IF_TYPE_ISO88022_LLC}
  143.   IF_TYPE_LOCALTALK               = 42;
  144.   {$EXTERNALSYM IF_TYPE_LOCALTALK}
  145.   IF_TYPE_SMDS_DXI                = 43;
  146.   {$EXTERNALSYM IF_TYPE_SMDS_DXI}
  147.   IF_TYPE_FRAMERELAY_SERVICE      = 44; // FRNETSERV-MIB
  148.   {$EXTERNALSYM IF_TYPE_FRAMERELAY_SERVICE}
  149.   IF_TYPE_V35                     = 45;
  150.   {$EXTERNALSYM IF_TYPE_V35}
  151.   IF_TYPE_HSSI                    = 46;
  152.   {$EXTERNALSYM IF_TYPE_HSSI}
  153.   IF_TYPE_HIPPI                   = 47;
  154.   {$EXTERNALSYM IF_TYPE_HIPPI}
  155.   IF_TYPE_MODEM                   = 48; // Generic Modem
  156.   {$EXTERNALSYM IF_TYPE_MODEM}
  157.   IF_TYPE_AAL5                    = 49; // AAL5 over ATM
  158.   {$EXTERNALSYM IF_TYPE_AAL5}
  159.   IF_TYPE_SONET_PATH              = 50;
  160.   {$EXTERNALSYM IF_TYPE_SONET_PATH}
  161.   IF_TYPE_SONET_VT                = 51;
  162.   {$EXTERNALSYM IF_TYPE_SONET_VT}
  163.   IF_TYPE_SMDS_ICIP               = 52; // SMDS InterCarrier Interface
  164.   {$EXTERNALSYM IF_TYPE_SMDS_ICIP}
  165.   IF_TYPE_PROP_VIRTUAL            = 53; // Proprietary virtual/internal
  166.   {$EXTERNALSYM IF_TYPE_PROP_VIRTUAL}
  167.   IF_TYPE_PROP_MULTIPLEXOR        = 54; // Proprietary multiplexing
  168.   {$EXTERNALSYM IF_TYPE_PROP_MULTIPLEXOR}
  169.   IF_TYPE_IEEE80212               = 55; // 100BaseVG
  170.   {$EXTERNALSYM IF_TYPE_IEEE80212}
  171.   IF_TYPE_FIBRECHANNEL            = 56;
  172.   {$EXTERNALSYM IF_TYPE_FIBRECHANNEL}
  173.   IF_TYPE_HIPPIINTERFACE          = 57;
  174.   {$EXTERNALSYM IF_TYPE_HIPPIINTERFACE}
  175.   IF_TYPE_FRAMERELAY_INTERCONNECT = 58; // Obsolete, use 32 or 44
  176.   {$EXTERNALSYM IF_TYPE_FRAMERELAY_INTERCONNECT}
  177.   IF_TYPE_AFLANE_8023             = 59; // ATM Emulated LAN for 802.3
  178.   {$EXTERNALSYM IF_TYPE_AFLANE_8023}
  179.   IF_TYPE_AFLANE_8025             = 60; // ATM Emulated LAN for 802.5
  180.   {$EXTERNALSYM IF_TYPE_AFLANE_8025}
  181.   IF_TYPE_CCTEMUL                 = 61; // ATM Emulated circuit
  182.   {$EXTERNALSYM IF_TYPE_CCTEMUL}
  183.   IF_TYPE_FASTETHER               = 62; // Fast Ethernet (100BaseT)
  184.   {$EXTERNALSYM IF_TYPE_FASTETHER}
  185.   IF_TYPE_ISDN                    = 63; // ISDN and X.25
  186.   {$EXTERNALSYM IF_TYPE_ISDN}
  187.   IF_TYPE_V11                     = 64; // CCITT V.11/X.21
  188.   {$EXTERNALSYM IF_TYPE_V11}
  189.   IF_TYPE_V36                     = 65; // CCITT V.36
  190.   {$EXTERNALSYM IF_TYPE_V36}
  191.   IF_TYPE_G703_64K                = 66; // CCITT G703 at 64Kbps
  192.   {$EXTERNALSYM IF_TYPE_G703_64K}
  193.   IF_TYPE_G703_2MB                = 67; // Obsolete; see DS1-MIB
  194.   {$EXTERNALSYM IF_TYPE_G703_2MB}
  195.   IF_TYPE_QLLC                    = 68; // SNA QLLC
  196.   {$EXTERNALSYM IF_TYPE_QLLC}
  197.   IF_TYPE_FASTETHER_FX            = 69; // Fast Ethernet (100BaseFX)
  198.   {$EXTERNALSYM IF_TYPE_FASTETHER_FX}
  199.   IF_TYPE_CHANNEL                 = 70;
  200.   {$EXTERNALSYM IF_TYPE_CHANNEL}
  201.   IF_TYPE_IEEE80211               = 71; // Radio spread spectrum
  202.   {$EXTERNALSYM IF_TYPE_IEEE80211}
  203.   IF_TYPE_IBM370PARCHAN           = 72; // IBM System 360/370 OEMI Channel
  204.   {$EXTERNALSYM IF_TYPE_IBM370PARCHAN}
  205.   IF_TYPE_ESCON                   = 73; // IBM Enterprise Systems Connection
  206.   {$EXTERNALSYM IF_TYPE_ESCON}
  207.   IF_TYPE_DLSW                    = 74; // Data Link Switching
  208.   {$EXTERNALSYM IF_TYPE_DLSW}
  209.   IF_TYPE_ISDN_S                  = 75; // ISDN S/T interface
  210.   {$EXTERNALSYM IF_TYPE_ISDN_S}
  211.   IF_TYPE_ISDN_U                  = 76; // ISDN U interface
  212.   {$EXTERNALSYM IF_TYPE_ISDN_U}
  213.   IF_TYPE_LAP_D                   = 77; // Link Access Protocol D
  214.   {$EXTERNALSYM IF_TYPE_LAP_D}
  215.   IF_TYPE_IPSWITCH                = 78; // IP Switching Objects
  216.   {$EXTERNALSYM IF_TYPE_IPSWITCH}
  217.   IF_TYPE_RSRB                    = 79; // Remote Source Route Bridging
  218.   {$EXTERNALSYM IF_TYPE_RSRB}
  219.   IF_TYPE_ATM_LOGICAL             = 80; // ATM Logical Port
  220.   {$EXTERNALSYM IF_TYPE_ATM_LOGICAL}
  221.   IF_TYPE_DS0                     = 81; // Digital Signal Level 0
  222.   {$EXTERNALSYM IF_TYPE_DS0}
  223.   IF_TYPE_DS0_BUNDLE              = 82; // Group of ds0s on the same ds1
  224.   {$EXTERNALSYM IF_TYPE_DS0_BUNDLE}
  225.   IF_TYPE_BSC                     = 83; // Bisynchronous Protocol
  226.   {$EXTERNALSYM IF_TYPE_BSC}
  227.   IF_TYPE_ASYNC                   = 84; // Asynchronous Protocol
  228.   {$EXTERNALSYM IF_TYPE_ASYNC}
  229.   IF_TYPE_CNR                     = 85; // Combat Net Radio
  230.   {$EXTERNALSYM IF_TYPE_CNR}
  231.   IF_TYPE_ISO88025R_DTR           = 86; // ISO 802.5r DTR
  232.   {$EXTERNALSYM IF_TYPE_ISO88025R_DTR}
  233.   IF_TYPE_EPLRS                   = 87; // Ext Pos Loc Report Sys
  234.   {$EXTERNALSYM IF_TYPE_EPLRS}
  235.   IF_TYPE_ARAP                    = 88; // Appletalk Remote Access Protocol
  236.   {$EXTERNALSYM IF_TYPE_ARAP}
  237.   IF_TYPE_PROP_CNLS               = 89; // Proprietary Connectionless Proto
  238.   {$EXTERNALSYM IF_TYPE_PROP_CNLS}
  239.   IF_TYPE_HOSTPAD                 = 90; // CCITT-ITU X.29 PAD Protocol
  240.   {$EXTERNALSYM IF_TYPE_HOSTPAD}
  241.   IF_TYPE_TERMPAD                 = 91; // CCITT-ITU X.3 PAD Facility
  242.   {$EXTERNALSYM IF_TYPE_TERMPAD}
  243.   IF_TYPE_FRAMERELAY_MPI          = 92; // Multiproto Interconnect over FR
  244.   {$EXTERNALSYM IF_TYPE_FRAMERELAY_MPI}
  245.   IF_TYPE_X213                    = 93; // CCITT-ITU X213
  246.   {$EXTERNALSYM IF_TYPE_X213}
  247.   IF_TYPE_ADSL                    = 94; // Asymmetric Digital Subscrbr Loop
  248.   {$EXTERNALSYM IF_TYPE_ADSL}
  249.   IF_TYPE_RADSL                   = 95; // Rate-Adapt Digital Subscrbr Loop
  250.   {$EXTERNALSYM IF_TYPE_RADSL}
  251.   IF_TYPE_SDSL                    = 96; // Symmetric Digital Subscriber Loop
  252.   {$EXTERNALSYM IF_TYPE_SDSL}
  253.   IF_TYPE_VDSL                    = 97; // Very H-Speed Digital Subscrb Loop
  254.   {$EXTERNALSYM IF_TYPE_VDSL}
  255.   IF_TYPE_ISO88025_CRFPRINT       = 98; // ISO 802.5 CRFP
  256.   {$EXTERNALSYM IF_TYPE_ISO88025_CRFPRINT}
  257.   IF_TYPE_MYRINET                 = 99; // Myricom Myrinet
  258.   {$EXTERNALSYM IF_TYPE_MYRINET}
  259.   IF_TYPE_VOICE_EM                = 100; // Voice recEive and transMit
  260.   {$EXTERNALSYM IF_TYPE_VOICE_EM}
  261.   IF_TYPE_VOICE_FXO               = 101; // Voice Foreign Exchange Office
  262.   {$EXTERNALSYM IF_TYPE_VOICE_FXO}
  263.   IF_TYPE_VOICE_FXS               = 102; // Voice Foreign Exchange Station
  264.   {$EXTERNALSYM IF_TYPE_VOICE_FXS}
  265.   IF_TYPE_VOICE_ENCAP             = 103; // Voice encapsulation
  266.   {$EXTERNALSYM IF_TYPE_VOICE_ENCAP}
  267.   IF_TYPE_VOICE_OVERIP            = 104; // Voice over IP encapsulation
  268.   {$EXTERNALSYM IF_TYPE_VOICE_OVERIP}
  269.   IF_TYPE_ATM_DXI                 = 105; // ATM DXI
  270.   {$EXTERNALSYM IF_TYPE_ATM_DXI}
  271.   IF_TYPE_ATM_FUNI                = 106; // ATM FUNI
  272.   {$EXTERNALSYM IF_TYPE_ATM_FUNI}
  273.   IF_TYPE_ATM_IMA                 = 107; // ATM IMA
  274.   {$EXTERNALSYM IF_TYPE_ATM_IMA}
  275.   IF_TYPE_PPPMULTILINKBUNDLE      = 108; // PPP Multilink Bundle
  276.   {$EXTERNALSYM IF_TYPE_PPPMULTILINKBUNDLE}
  277.   IF_TYPE_IPOVER_CDLC             = 109; // IBM ipOverCdlc
  278.   {$EXTERNALSYM IF_TYPE_IPOVER_CDLC}
  279.   IF_TYPE_IPOVER_CLAW             = 110; // IBM Common Link Access to Workstn
  280.   {$EXTERNALSYM IF_TYPE_IPOVER_CLAW}
  281.   IF_TYPE_STACKTOSTACK            = 111; // IBM stackToStack
  282.   {$EXTERNALSYM IF_TYPE_STACKTOSTACK}
  283.   IF_TYPE_VIRTUALIPADDRESS        = 112; // IBM VIPA
  284.   {$EXTERNALSYM IF_TYPE_VIRTUALIPADDRESS}
  285.   IF_TYPE_MPC                     = 113; // IBM multi-proto channel support
  286.   {$EXTERNALSYM IF_TYPE_MPC}
  287.   IF_TYPE_IPOVER_ATM              = 114; // IBM ipOverAtm
  288.   {$EXTERNALSYM IF_TYPE_IPOVER_ATM}
  289.   IF_TYPE_ISO88025_FIBER          = 115; // ISO 802.5j Fiber Token Ring
  290.   {$EXTERNALSYM IF_TYPE_ISO88025_FIBER}
  291.   IF_TYPE_TDLC                    = 116; // IBM twinaxial data link control
  292.   {$EXTERNALSYM IF_TYPE_TDLC}
  293.   IF_TYPE_GIGABITETHERNET         = 117;
  294.   {$EXTERNALSYM IF_TYPE_GIGABITETHERNET}
  295.   IF_TYPE_HDLC                    = 118;
  296.   {$EXTERNALSYM IF_TYPE_HDLC}
  297.   IF_TYPE_LAP_F                   = 119;
  298.   {$EXTERNALSYM IF_TYPE_LAP_F}
  299.   IF_TYPE_V37                     = 120;
  300.   {$EXTERNALSYM IF_TYPE_V37}
  301.   IF_TYPE_X25_MLP                 = 121; // Multi-Link Protocol
  302.   {$EXTERNALSYM IF_TYPE_X25_MLP}
  303.   IF_TYPE_X25_HUNTGROUP           = 122; // X.25 Hunt Group
  304.   {$EXTERNALSYM IF_TYPE_X25_HUNTGROUP}
  305.   IF_TYPE_TRANSPHDLC              = 123;
  306.   {$EXTERNALSYM IF_TYPE_TRANSPHDLC}
  307.   IF_TYPE_INTERLEAVE              = 124; // Interleave channel
  308.   {$EXTERNALSYM IF_TYPE_INTERLEAVE}
  309.   IF_TYPE_FAST                    = 125; // Fast channel
  310.   {$EXTERNALSYM IF_TYPE_FAST}
  311.   IF_TYPE_IP                      = 126; // IP (for APPN HPR in IP networks)
  312.   {$EXTERNALSYM IF_TYPE_IP}
  313.   IF_TYPE_DOCSCABLE_MACLAYER      = 127; // CATV Mac Layer
  314.   {$EXTERNALSYM IF_TYPE_DOCSCABLE_MACLAYER}
  315.   IF_TYPE_DOCSCABLE_DOWNSTREAM    = 128; // CATV Downstream interface
  316.   {$EXTERNALSYM IF_TYPE_DOCSCABLE_DOWNSTREAM}
  317.   IF_TYPE_DOCSCABLE_UPSTREAM      = 129; // CATV Upstream interface
  318.   {$EXTERNALSYM IF_TYPE_DOCSCABLE_UPSTREAM}
  319.   IF_TYPE_A12MPPSWITCH            = 130; // Avalon Parallel Processor
  320.   {$EXTERNALSYM IF_TYPE_A12MPPSWITCH}
  321.   IF_TYPE_TUNNEL                  = 131; // Encapsulation interface
  322.   {$EXTERNALSYM IF_TYPE_TUNNEL}
  323.   IF_TYPE_COFFEE                  = 132; // Coffee pot
  324.   {$EXTERNALSYM IF_TYPE_COFFEE}
  325.   IF_TYPE_CES                     = 133; // Circuit Emulation Service
  326.   {$EXTERNALSYM IF_TYPE_CES}
  327.   IF_TYPE_ATM_SUBINTERFACE        = 134; // ATM Sub Interface
  328.   {$EXTERNALSYM IF_TYPE_ATM_SUBINTERFACE}
  329.   IF_TYPE_L2_VLAN                 = 135; // Layer 2 Virtual LAN using 802.1Q
  330.   {$EXTERNALSYM IF_TYPE_L2_VLAN}
  331.   IF_TYPE_L3_IPVLAN               = 136; // Layer 3 Virtual LAN using IP
  332.   {$EXTERNALSYM IF_TYPE_L3_IPVLAN}
  333.   IF_TYPE_L3_IPXVLAN              = 137; // Layer 3 Virtual LAN using IPX
  334.   {$EXTERNALSYM IF_TYPE_L3_IPXVLAN}
  335.   IF_TYPE_DIGITALPOWERLINE        = 138; // IP over Power Lines
  336.   {$EXTERNALSYM IF_TYPE_DIGITALPOWERLINE}
  337.   IF_TYPE_MEDIAMAILOVERIP         = 139; // Multimedia Mail over IP
  338.   {$EXTERNALSYM IF_TYPE_MEDIAMAILOVERIP}
  339.   IF_TYPE_DTM                     = 140; // Dynamic syncronous Transfer Mode
  340.   {$EXTERNALSYM IF_TYPE_DTM}
  341.   IF_TYPE_DCN                     = 141; // Data Communications Network
  342.   {$EXTERNALSYM IF_TYPE_DCN}
  343.   IF_TYPE_IPFORWARD               = 142; // IP Forwarding Interface
  344.   {$EXTERNALSYM IF_TYPE_IPFORWARD}
  345.   IF_TYPE_MSDSL                   = 143; // Multi-rate Symmetric DSL
  346.   {$EXTERNALSYM IF_TYPE_MSDSL}
  347.   IF_TYPE_IEEE1394                = 144; // IEEE1394 High Perf Serial Bus
  348.   {$EXTERNALSYM IF_TYPE_IEEE1394}
  349.   IF_TYPE_RECEIVE_ONLY            = 145; // TV adapter type
  350.   {$EXTERNALSYM IF_TYPE_RECEIVE_ONLY}
  351.   MAX_IF_TYPE = 145;
  352.   {$EXTERNALSYM MAX_IF_TYPE}
  353. //////////////////////////////////////////////////////////////////////////////
  354. //                                                                          //
  355. // Access types                                                             //
  356. //                                                                          //
  357. //////////////////////////////////////////////////////////////////////////////
  358.   IF_ACCESS_LOOPBACK          = 1;
  359.   {$EXTERNALSYM IF_ACCESS_LOOPBACK}
  360.   IF_ACCESS_BROADCAST         = 2;
  361.   {$EXTERNALSYM IF_ACCESS_BROADCAST}
  362.   IF_ACCESS_POINTTOPOINT      = 3;
  363.   {$EXTERNALSYM IF_ACCESS_POINTTOPOINT}
  364.   IF_ACCESS_POINTTOMULTIPOINT = 4;
  365.   {$EXTERNALSYM IF_ACCESS_POINTTOMULTIPOINT}
  366. //////////////////////////////////////////////////////////////////////////////
  367. //                                                                          //
  368. // Interface Capabilities (bit flags)                                       //
  369. //                                                                          //
  370. //////////////////////////////////////////////////////////////////////////////
  371.   IF_CHECK_NONE                  = $00;
  372.   {$EXTERNALSYM IF_CHECK_NONE}
  373.   IF_CHECK_MCAST                 = $01;
  374.   {$EXTERNALSYM IF_CHECK_MCAST}
  375.   IF_CHECK_SEND                  = $02;
  376.   {$EXTERNALSYM IF_CHECK_SEND}
  377. //////////////////////////////////////////////////////////////////////////////
  378. //                                                                          //
  379. // Connection Types                                                         //
  380. //                                                                          //
  381. //////////////////////////////////////////////////////////////////////////////
  382.   IF_CONNECTION_DEDICATED = 1;
  383.   {$EXTERNALSYM IF_CONNECTION_DEDICATED}
  384.   IF_CONNECTION_PASSIVE   = 2;
  385.   {$EXTERNALSYM IF_CONNECTION_PASSIVE}
  386.   IF_CONNECTION_DEMAND    = 3;
  387.   {$EXTERNALSYM IF_CONNECTION_DEMAND}
  388.   IF_ADMIN_STATUS_UP      = 1;
  389.   {$EXTERNALSYM IF_ADMIN_STATUS_UP}
  390.   IF_ADMIN_STATUS_DOWN    = 2;
  391.   {$EXTERNALSYM IF_ADMIN_STATUS_DOWN}
  392.   IF_ADMIN_STATUS_TESTING = 3;
  393.   {$EXTERNALSYM IF_ADMIN_STATUS_TESTING}
  394. //////////////////////////////////////////////////////////////////////////////
  395. //                                                                          //
  396. // The following are the the operational states for WAN and LAN interfaces. //
  397. // The order of the states seems weird, but is done for a purpose. All      //
  398. // states >= CONNECTED can transmit data right away. States >= DISCONNECTED //
  399. // can tx data but some set up might be needed. States < DISCONNECTED can   //
  400. // not transmit data.                                                       //
  401. // A card is marked UNREACHABLE if DIM calls InterfaceUnreachable for       //
  402. // reasons other than failure to connect.                                   //
  403. //                                                                          //
  404. // NON_OPERATIONAL -- Valid for LAN Interfaces. Means the card is not       //
  405. //                      working or not plugged in or has no address.        //
  406. // UNREACHABLE     -- Valid for WAN Interfaces. Means the remote site is    //
  407. //                      not reachable at this time.                         //
  408. // DISCONNECTED    -- Valid for WAN Interfaces. Means the remote site is    //
  409. //                      not connected at this time.                         //
  410. // CONNECTING      -- Valid for WAN Interfaces. Means a connection attempt  //
  411. //                      has been initiated to the remote site.              //
  412. // CONNECTED       -- Valid for WAN Interfaces. Means the remote site is    //
  413. //                      connected.                                          //
  414. // OPERATIONAL     -- Valid for LAN Interfaces. Means the card is plugged   //
  415. //                      in and working.                                     //
  416. //                                                                          //
  417. // It is the users duty to convert these values to MIB-II values if they    //
  418. // are to be used by a subagent                                             //
  419. //                                                                          //
  420. //////////////////////////////////////////////////////////////////////////////
  421.   IF_OPER_STATUS_NON_OPERATIONAL = 0;
  422.   {$EXTERNALSYM IF_OPER_STATUS_NON_OPERATIONAL}
  423.   IF_OPER_STATUS_UNREACHABLE     = 1;
  424.   {$EXTERNALSYM IF_OPER_STATUS_UNREACHABLE}
  425.   IF_OPER_STATUS_DISCONNECTED    = 2;
  426.   {$EXTERNALSYM IF_OPER_STATUS_DISCONNECTED}
  427.   IF_OPER_STATUS_CONNECTING      = 3;
  428.   {$EXTERNALSYM IF_OPER_STATUS_CONNECTING}
  429.   IF_OPER_STATUS_CONNECTED       = 4;
  430.   {$EXTERNALSYM IF_OPER_STATUS_CONNECTED}
  431.   IF_OPER_STATUS_OPERATIONAL     = 5;
  432.   {$EXTERNALSYM IF_OPER_STATUS_OPERATIONAL}
  433.   MIB_IF_TYPE_OTHER     = 1;
  434.   {$EXTERNALSYM MIB_IF_TYPE_OTHER}
  435.   MIB_IF_TYPE_ETHERNET  = 6;
  436.   {$EXTERNALSYM MIB_IF_TYPE_ETHERNET}
  437.   MIB_IF_TYPE_TOKENRING = 9;
  438.   {$EXTERNALSYM MIB_IF_TYPE_TOKENRING}
  439.   MIB_IF_TYPE_FDDI      = 15;
  440.   {$EXTERNALSYM MIB_IF_TYPE_FDDI}
  441.   MIB_IF_TYPE_PPP       = 23;
  442.   {$EXTERNALSYM MIB_IF_TYPE_PPP}
  443.   MIB_IF_TYPE_LOOPBACK  = 24;
  444.   {$EXTERNALSYM MIB_IF_TYPE_LOOPBACK}
  445.   MIB_IF_TYPE_SLIP      = 28;
  446.   {$EXTERNALSYM MIB_IF_TYPE_SLIP}
  447.   MIB_IF_ADMIN_STATUS_UP      = 1;
  448.   {$EXTERNALSYM MIB_IF_ADMIN_STATUS_UP}
  449.   MIB_IF_ADMIN_STATUS_DOWN    = 2;
  450.   {$EXTERNALSYM MIB_IF_ADMIN_STATUS_DOWN}
  451.   MIB_IF_ADMIN_STATUS_TESTING = 3;
  452.   {$EXTERNALSYM MIB_IF_ADMIN_STATUS_TESTING}
  453.   MIB_IF_OPER_STATUS_NON_OPERATIONAL = 0;
  454.   {$EXTERNALSYM MIB_IF_OPER_STATUS_NON_OPERATIONAL}
  455.   MIB_IF_OPER_STATUS_UNREACHABLE     = 1;
  456.   {$EXTERNALSYM MIB_IF_OPER_STATUS_UNREACHABLE}
  457.   MIB_IF_OPER_STATUS_DISCONNECTED    = 2;
  458.   {$EXTERNALSYM MIB_IF_OPER_STATUS_DISCONNECTED}
  459.   MIB_IF_OPER_STATUS_CONNECTING      = 3;
  460.   {$EXTERNALSYM MIB_IF_OPER_STATUS_CONNECTING}
  461.   MIB_IF_OPER_STATUS_CONNECTED       = 4;
  462.   {$EXTERNALSYM MIB_IF_OPER_STATUS_CONNECTED}
  463.   MIB_IF_OPER_STATUS_OPERATIONAL     = 5;
  464.   {$EXTERNALSYM MIB_IF_OPER_STATUS_OPERATIONAL}
  465. implementation
  466. end.