1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/openenvcore/include/netconfig.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,82 @@
1.4 +/* $NetBSD: netconfig.h,v 1.1 2000/06/02 22:57:54 fvdl Exp $ */
1.5 +/* $FreeBSD: src/include/netconfig.h,v 1.3 2002/03/23 17:24:53 imp Exp $ */
1.6 +
1.7 +
1.8 +#ifndef _NETCONFIG_H_
1.9 +#define _NETCONFIG_H_
1.10 +
1.11 +#include <sys/cdefs.h>
1.12 +
1.13 +#define NETCONFIG "/etc/netconfig"
1.14 +#define NETPATH "NETPATH"
1.15 +
1.16 +struct netconfig {
1.17 + char *nc_netid; /* Network ID */
1.18 + unsigned long nc_semantics; /* Semantics (see below) */
1.19 + unsigned long nc_flag; /* Flags (see below) */
1.20 + char *nc_protofmly; /* Protocol family */
1.21 + char *nc_proto; /* Protocol name */
1.22 + char *nc_device; /* Network device pathname */
1.23 + unsigned long nc_nlookups; /* Number of directory lookup libs */
1.24 + char **nc_lookups; /* Names of the libraries */
1.25 + unsigned long nc_unused[9]; /* reserved */
1.26 +};
1.27 +
1.28 +typedef struct {
1.29 + struct netconfig **nc_head;
1.30 + struct netconfig **nc_curr;
1.31 +} NCONF_HANDLE;
1.32 +
1.33 +/*
1.34 + * nc_semantics values
1.35 + */
1.36 +#define NC_TPI_CLTS 1
1.37 +#define NC_TPI_COTS 2
1.38 +#define NC_TPI_COTS_ORD 3
1.39 +#define NC_TPI_RAW 4
1.40 +
1.41 +/*
1.42 + * nc_flag values
1.43 + */
1.44 +#define NC_NOFLAG 0x00
1.45 +#define NC_VISIBLE 0x01
1.46 +#define NC_BROADCAST 0x02
1.47 +
1.48 +/*
1.49 + * nc_protofmly values
1.50 + */
1.51 +#define NC_NOPROTOFMLY "-"
1.52 +#define NC_LOOPBACK "loopback"
1.53 +#define NC_INET "inet"
1.54 +#define NC_INET6 "inet6"
1.55 +#define NC_IMPLINK "implink"
1.56 +#define NC_PUP "pup"
1.57 +#define NC_CHAOS "chaos"
1.58 +#define NC_NS "ns"
1.59 +#define NC_NBS "nbs"
1.60 +#define NC_ECMA "ecma"
1.61 +#define NC_DATAKIT "datakit"
1.62 +#define NC_CCITT "ccitt"
1.63 +#define NC_SNA "sna"
1.64 +#define NC_DECNET "decnet"
1.65 +#define NC_DLI "dli"
1.66 +#define NC_LAT "lat"
1.67 +#define NC_HYLINK "hylink"
1.68 +#define NC_APPLETALK "appletalk"
1.69 +#define NC_NIT "nit"
1.70 +#define NC_IEEE802 "ieee802"
1.71 +#define NC_OSI "osi"
1.72 +#define NC_X25 "x25"
1.73 +#define NC_OSINET "osinet"
1.74 +#define NC_GOSIP "gosip"
1.75 +
1.76 +/*
1.77 + * nc_proto values
1.78 + */
1.79 +#define NC_NOPROTO "-"
1.80 +#define NC_TCP "tcp"
1.81 +#define NC_UDP "udp"
1.82 +#define NC_ICMP "icmp"
1.83 +
1.84 +
1.85 +#endif /* _NETCONFIG_H_ */