home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / netconfig.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.5 KB  |  102 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef    _SYS_NETCONFIG_H
  11. #define    _SYS_NETCONFIG_H
  12.  
  13. #ident    "@(#)/usr/include/sys/netconfig.h.sl 1.1 4.0 12/08/90 34368 AT&T-USL"
  14. #define NETCONFIG "/etc/netconfig"
  15. #define NETPATH   "NETPATH"
  16.  
  17. struct  netconfig {
  18.     char            *nc_netid;    /* network identifier         */
  19.     unsigned long   nc_semantics;    /* defined below              */
  20.     unsigned long   nc_flag;    /* defined below              */
  21.     char              *nc_protofmly;    /* protocol family name          */
  22.     char              *nc_proto;    /* protocol name          */
  23.     char           *nc_device;    /* device name for network id */
  24.     unsigned long   nc_nlookups;    /* # of entries in nc_lookups */
  25.     char          **nc_lookups;    /* list of lookup directories */
  26.     unsigned long   nc_unused[8];
  27. };
  28.  
  29. typedef struct {
  30.     struct netconfig **nc_head;
  31.     struct netconfig **nc_curr;
  32. } NCONF_HANDLE;
  33.  
  34. /*
  35.  *    Values of nc_semantics
  36.  */
  37.  
  38. #define NC_TPI_CLTS    1
  39. #define NC_TPI_COTS    2
  40. #define NC_TPI_COTS_ORD    3
  41. #define NC_TPI_RAW    4
  42.  
  43. /*
  44.  *    Values of nc_flag
  45.  */
  46.  
  47. #define NC_NOFLAG    00
  48. #define NC_VISIBLE    01
  49. #define NC_BROADCAST    02
  50.  
  51. /*
  52.  *    Values of nc_protofmly
  53.  */
  54.  
  55. #define NC_NOPROTOFMLY    "-"
  56. #define NC_LOOPBACK    "loopback"
  57. #define NC_INET        "inet"
  58. #define NC_IMPLINK    "implink"
  59. #define NC_PUP        "pup"
  60. #define NC_CHAOS    "chaos"
  61. #define NC_NS        "ns"
  62. #define NC_NBS        "nbs"
  63. #define NC_ECMA        "ecma"
  64. #define NC_DATAKIT    "datakit"
  65. #define NC_CCITT    "ccitt"
  66. #define NC_SNA        "sna"
  67. #define NC_DECNET    "decnet"
  68. #define NC_DLI        "dli"
  69. #define NC_LAT        "lat"
  70. #define NC_HYLINK    "hylink"
  71. #define NC_APPLETALK    "appletalk"
  72. #define NC_NIT        "nit"
  73. #define NC_IEEE802    "ieee802"
  74. #define NC_OSI        "osi"
  75. #define NC_X25        "x25"
  76. #define NC_OSINET    "osinet"
  77. #define NC_GOSIP    "gosip"
  78.  
  79. /*
  80.  *    Values for nc_proto
  81.  */
  82.  
  83. #define NC_NOPROTO    "-"
  84. #define NC_TCP        "tcp"
  85. #define NC_UDP        "udp"
  86. #define NC_ICMP        "icmp"
  87.  
  88. #if defined(__STDC__)
  89.  
  90. extern void          *setnetconfig(void);
  91. extern int             endnetconfig(void *);
  92. extern struct netconfig  *getnetconfig(void *);
  93. extern struct netconfig  *getnetconfigent(char *);
  94. extern void            freenetconfigent(struct netconfig *);
  95. extern void          *setnetpath(void);
  96. extern int             endnetpath(void *);
  97. extern struct netconfig  *getnetpath(void *);
  98.  
  99. #endif    /* __STDC__ */
  100.  
  101. #endif /* _SYS_NETCONFIG_H */
  102.