home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume26 / sysinfo-1.0 / part01 / info-netif.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-10  |  2.3 KB  |  107 lines

  1. /*
  2.  * Copyright (c) 1992 Michael A. Cooper.
  3.  * This software may be freely distributed provided it is not sold for 
  4.  * profit and the author is credited appropriately.
  5.  */
  6. /*
  7.  * Copyright (c) 1992 Michael A. Cooper.
  8.  * This software may be freely distributed provided it is not sold for 
  9.  * profit and the author is credited appropriately.
  10.  */
  11. #ifndef lint
  12. static char *RCSid = "$Header: /src/common/usc/bin/sysinfo/RCS/info-netif.c,v 1.3 1992/04/26 23:32:06 mcooper Exp $";
  13. #endif
  14.  
  15. /*
  16.  * $Log: info-netif.c,v $
  17.  * Revision 1.3  1992/04/26  23:32:06  mcooper
  18.  * Add Copyright notice
  19.  *
  20.  * Revision 1.2  1992/03/22  00:20:10  mcooper
  21.  * Major cleanup and re-org.
  22.  *
  23.  * Revision 1.1  1992/03/08  04:55:33  mcooper
  24.  * Initial revision
  25.  *
  26.  */
  27.  
  28. /*
  29.  * This file contains information specific to network interfaces that
  30.  * will need periodic updating.
  31.  */
  32.  
  33. #include <stdio.h>
  34. #include "system.h"
  35. #include "defs.h"
  36.  
  37. #include <sys/types.h>
  38. #include <sys/socket.h>
  39.  
  40. /*
  41.  * Address family table
  42.  */
  43. NETIF *GetNetifINET();
  44. NETIF *GetNetifUnknown();
  45.  
  46. AFTAB AFTab[] = {
  47. #ifdef AF_INET
  48.     {  AF_INET,        "Internet",        GetNetifINET },
  49. #endif
  50. #ifdef AF_UNSPEC
  51.     {  AF_UNSPEC,    "Unspecified",        GetNetifUnknown },
  52. #endif
  53. #ifdef AF_DECnet
  54.     {  AF_DECnet,    "DECnet",        GetNetifUnknown },
  55. #endif
  56. #ifdef AF_LAT
  57.     {  AF_LAT,        "LAT",            GetNetifUnknown },
  58. #endif
  59. #ifdef AF_GOSIP
  60.     {  AF_GOSIP,    "GOSIP",        GetNetifUnknown },
  61. #endif
  62. #ifdef AF_PUP
  63.     {  AF_PUP,        "PUP",            GetNetifUnknown },
  64. #endif
  65. #ifdef AF_CHAOS
  66.     {  AF_CHAOS,    "CHAOS",        GetNetifUnknown },
  67. #endif
  68. #ifdef AF_NS
  69.     {  AF_NS,        "XEROX NS",        GetNetifUnknown },
  70. #endif
  71. #ifdef AF_NBS
  72.     {  AF_NBS,        "NBS",            GetNetifUnknown },
  73. #endif
  74. #ifdef AF_ECMA
  75.     {  AF_ECMA,        "ECMA",            GetNetifUnknown },
  76. #endif
  77. #ifdef AF_DATAKIT
  78.     {  AF_DATAKIT,    "DATAKIT",        GetNetifUnknown },
  79. #endif
  80. #ifdef AF_CCITT
  81.     {  AF_CCITT,    "CCITT",        GetNetifUnknown },
  82. #endif
  83. #ifdef AF_LYLINK
  84.     {  AF_LYLINK,    "LYLINK",        GetNetifUnknown },
  85. #endif
  86. #ifdef AF_APPLETALK
  87.     {  AF_APPLETALK,    "APPLETALK",        GetNetifUnknown },
  88. #endif
  89. #ifdef AF_BSC
  90.     {  AF_BSC,        "BSC",            GetNetifUnknown },
  91. #endif
  92. #ifdef AF_DSS
  93.     {  AF_DSS,        "DSS",            GetNetifUnknown },
  94. #endif
  95. #ifdef AF_OSI
  96.     {  AF_OSI,        "OSI",            GetNetifUnknown },
  97. #endif
  98. #ifdef AF_NETMAN
  99.     {  AF_NETMAN,    "NETMAN",        GetNetifUnknown },
  100. #endif
  101. #ifdef AF_X25
  102.     {  AF_X25,        "X25",            GetNetifUnknown },
  103. #endif
  104.     {  0 },
  105. };
  106.  
  107.