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