2 |
7u83 |
1 |
# Crown Copyright (c) 1997
|
|
|
2 |
#
|
|
|
3 |
# This TenDRA(r) Computer Program is subject to Copyright
|
|
|
4 |
# owned by the United Kingdom Secretary of State for Defence
|
|
|
5 |
# acting through the Defence Evaluation and Research Agency
|
|
|
6 |
# (DERA). It is made available to Recipients with a
|
|
|
7 |
# royalty-free licence for its use, reproduction, transfer
|
|
|
8 |
# to other parties and amendment for any purpose not excluding
|
|
|
9 |
# product development provided that any such use et cetera
|
|
|
10 |
# shall be deemed to be acceptance of the following conditions:-
|
|
|
11 |
#
|
|
|
12 |
# (1) Its Recipients shall ensure that this Notice is
|
|
|
13 |
# reproduced upon any copies or amended versions of it;
|
|
|
14 |
#
|
|
|
15 |
# (2) Any amended version of it shall be clearly marked to
|
|
|
16 |
# show both the nature of and the organisation responsible
|
|
|
17 |
# for the relevant amendment or amendments;
|
|
|
18 |
#
|
|
|
19 |
# (3) Its onward transfer from a recipient to another
|
|
|
20 |
# party shall be deemed to be that party's acceptance of
|
|
|
21 |
# these conditions;
|
|
|
22 |
#
|
|
|
23 |
# (4) DERA gives no warranty or assurance as to its
|
|
|
24 |
# quality or suitability for any purpose and DERA accepts
|
|
|
25 |
# no liability whatsoever in relation to any use to which
|
|
|
26 |
# it may be put.
|
|
|
27 |
#
|
|
|
28 |
+USE "svid3", "", "config" ;
|
|
|
29 |
|
|
|
30 |
+IF %% __SYSV_REMOTE_SERVICES %%
|
|
|
31 |
|
|
|
32 |
+USE "svid3", "netconfig.h" ;
|
|
|
33 |
+USE "svid3", "tiuser.h" ;
|
|
|
34 |
|
|
|
35 |
+FIELD struct nd_hostserv {
|
|
|
36 |
char *h_host ;
|
|
|
37 |
char *h_serv ;
|
|
|
38 |
} ;
|
|
|
39 |
|
|
|
40 |
+FIELD struct nd_addrlist {
|
|
|
41 |
int n_cnt ;
|
|
|
42 |
struct netbuf *n_addrs ;
|
|
|
43 |
} ;
|
|
|
44 |
|
|
|
45 |
+FIELD struct nd_hostservlist {
|
|
|
46 |
int h_cnt ;
|
|
|
47 |
struct nd_hostserv *h_hostservs ;
|
|
|
48 |
} ;
|
|
|
49 |
|
|
|
50 |
+CONST char *HOST_SELF, *HOST_ANY, *HOST_BROADCAST ;
|
|
|
51 |
|
|
|
52 |
+FUNC void netdir_free ( void *, int ) ;
|
|
|
53 |
+FUNC int netdir_getbyname ( const struct netconfig *,
|
|
|
54 |
const struct nd_hostserv *, struct nd_addrlist ** ) ;
|
|
|
55 |
+FUNC int netdir_getbyaddr ( const struct netconfig *,
|
|
|
56 |
struct nd_hostservlist **, const struct netbuf * ) ;
|
|
|
57 |
+FUNC char *taddr2uaddr ( const struct netconfig *, const struct netbuf * ) ;
|
|
|
58 |
/* I think these are wrong in the book */
|
|
|
59 |
+FUNC int netdir_options ( const struct netconfig *, int, int, void * ) ;
|
|
|
60 |
+FUNC struct netbuf *uaddr2taddr ( const struct netconfig *, const char * ) ;
|
|
|
61 |
|
|
|
62 |
+ENDIF
|