Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.0 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (c) 1997 Microsoft Corporation
  4. Module Name:
  5. Vendors.cpp
  6. Abstract:
  7. Implementation file for NAS Vendor ID info.
  8. Author:
  9. Michael A. Maguire 02/19/98
  10. Revision History:
  11. mmaguire 02/19/98 created
  12. byao 3/13/98 Modified. use '0' for RADIUS
  13. --*/
  14. //////////////////////////////////////////////////////////////////////////////
  15. //////////////////////////////////////////////////////////////////////////////
  16. // BEGIN INCLUDES
  17. //
  18. // where we can find declaration for main class in this file:
  19. //
  20. #include "stdafx.h"
  21. #include "Vendors.h"
  22. //
  23. //
  24. // where we can find declarations needed in this file:
  25. //
  26. //
  27. // END INCLUDES
  28. //////////////////////////////////////////////////////////////////////////////
  29. // Vendor ID constants and names.
  30. Vendor g_aVendors[] =
  31. {
  32. // make sure this list is sorted!!! otherwise we will have to do
  33. // a search whenever use picks something in VSS list
  34. { 0x2b, _T("3Com") }
  35. , { 0x5, _T("ACC") }
  36. , { 0xb5, _T("ADC Kentrox") }
  37. , { 0x211, _T("Ascend Communications Inc.") }
  38. , { 0xe, _T("BBN") }
  39. , { 0x110, _T("BinTec Computers") }
  40. , { 0x34, _T("Cabletron") }
  41. , { 0x9, _T("Cisco") }
  42. , { 0x14c, _T("Digiboard") }
  43. , { 0x1b2, _T("EICON Technologies") }
  44. , { 0x40, _T("Gandalf") }
  45. , { 0x157, _T("Intel") }
  46. , { 0xf4, _T("Lantronix") }
  47. , { 0x133, _T("Livingston Enterprises, Inc.") }
  48. , { 0x137, _T("Microsoft RAS") }
  49. , { 0x1, _T("Proteon") }
  50. , { 0x0, _T("RADIUS proxy or Any") }
  51. , { 0xa6, _T("Shiva") }
  52. , { 0x75, _T("Telebit") }
  53. , { 0x1ad, _T("U.S. Robotics, Inc.") }
  54. , { 0xf, _T("XLogics") }
  55. };
  56. int g_iVendorNum = 21;
  57. // Searches for a given vendor ID and returns its position in the array of vendors.
  58. int VendorIDToOrdinal( DWORD dwID )
  59. {
  60. for (int i = 0; i < g_iVendorNum ; i++)
  61. {
  62. if( dwID == g_aVendors[i].dwID )
  63. {
  64. return i;
  65. }
  66. }
  67. // Error case.
  68. return INVALID_VENDORID;
  69. }