epoc32/include/stdapis/netconfig.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 0 061f57f2323e
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*	$NetBSD: netconfig.h,v 1.1 2000/06/02 22:57:54 fvdl Exp $	*/
williamr@2
     2
/*	$FreeBSD: src/include/netconfig.h,v 1.3 2002/03/23 17:24:53 imp Exp $ */
williamr@2
     3
williamr@2
     4
williamr@2
     5
#ifndef _NETCONFIG_H_
williamr@2
     6
#define _NETCONFIG_H_
williamr@2
     7
williamr@2
     8
#include <sys/cdefs.h>
williamr@2
     9
williamr@2
    10
#define NETCONFIG	"/etc/netconfig"
williamr@2
    11
#define NETPATH		"NETPATH"
williamr@2
    12
williamr@2
    13
struct netconfig {
williamr@2
    14
	char *nc_netid;			/* Network ID */
williamr@2
    15
	unsigned long nc_semantics;	/* Semantics (see below) */
williamr@2
    16
	unsigned long nc_flag;		/* Flags (see below) */
williamr@2
    17
	char *nc_protofmly;		/* Protocol family */
williamr@2
    18
	char *nc_proto;			/* Protocol name */
williamr@2
    19
	char *nc_device;		/* Network device pathname */
williamr@2
    20
	unsigned long nc_nlookups;	/* Number of directory lookup libs */
williamr@2
    21
	char **nc_lookups;		/* Names of the libraries */
williamr@2
    22
	unsigned long nc_unused[9];	/* reserved */
williamr@2
    23
};
williamr@2
    24
williamr@2
    25
typedef struct {
williamr@2
    26
	struct netconfig **nc_head;
williamr@2
    27
	struct netconfig **nc_curr;
williamr@2
    28
} NCONF_HANDLE;
williamr@2
    29
williamr@2
    30
/*
williamr@2
    31
 * nc_semantics values
williamr@2
    32
 */
williamr@2
    33
#define NC_TPI_CLTS	1
williamr@2
    34
#define NC_TPI_COTS	2
williamr@2
    35
#define NC_TPI_COTS_ORD	3
williamr@2
    36
#define NC_TPI_RAW	4
williamr@2
    37
williamr@2
    38
/*
williamr@2
    39
 * nc_flag values
williamr@2
    40
 */
williamr@2
    41
#define NC_NOFLAG	0x00
williamr@2
    42
#define NC_VISIBLE	0x01
williamr@2
    43
#define NC_BROADCAST	0x02
williamr@2
    44
williamr@2
    45
/*
williamr@2
    46
 * nc_protofmly values
williamr@2
    47
 */
williamr@2
    48
#define NC_NOPROTOFMLY	"-"
williamr@2
    49
#define NC_LOOPBACK	"loopback"
williamr@2
    50
#define NC_INET		"inet"
williamr@2
    51
#define NC_INET6	"inet6"
williamr@2
    52
#define NC_IMPLINK	"implink"
williamr@2
    53
#define NC_PUP		"pup"
williamr@2
    54
#define NC_CHAOS	"chaos"
williamr@2
    55
#define NC_NS		"ns"
williamr@2
    56
#define NC_NBS		"nbs"
williamr@2
    57
#define NC_ECMA		"ecma"
williamr@2
    58
#define NC_DATAKIT	"datakit"
williamr@2
    59
#define NC_CCITT	"ccitt"
williamr@2
    60
#define NC_SNA		"sna"
williamr@2
    61
#define NC_DECNET	"decnet"
williamr@2
    62
#define NC_DLI		"dli"
williamr@2
    63
#define NC_LAT		"lat"
williamr@2
    64
#define NC_HYLINK	"hylink"
williamr@2
    65
#define NC_APPLETALK	"appletalk"
williamr@2
    66
#define NC_NIT		"nit"
williamr@2
    67
#define NC_IEEE802	"ieee802"
williamr@2
    68
#define NC_OSI		"osi"
williamr@2
    69
#define NC_X25		"x25"
williamr@2
    70
#define NC_OSINET	"osinet"
williamr@2
    71
#define NC_GOSIP	"gosip"
williamr@2
    72
williamr@2
    73
/*
williamr@2
    74
 * nc_proto values
williamr@2
    75
 */
williamr@2
    76
#define NC_NOPROTO	"-"
williamr@2
    77
#define NC_TCP		"tcp"
williamr@2
    78
#define NC_UDP		"udp"
williamr@2
    79
#define NC_ICMP		"icmp"
williamr@2
    80
williamr@2
    81
williamr@2
    82
#endif /* _NETCONFIG_H_ */