Print this page
4953763 Need way to configure NFS window sizes without changing system wide defaults
6216670 NFS server needs a bigger transmit buffer
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/cmd/fs.d/nfs/lib/nfs_tbind.h
+++ new/usr/src/cmd/fs.d/nfs/lib/nfs_tbind.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
|
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 - * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22 + * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 24 */
25 25
26 26 /*
27 27 * nfs_tbind.h, common code for nfsd and lockd
28 28 */
29 29
30 30 #ifndef _NFS_TBIND_H
31 31 #define _NFS_TBIND_H
32 32
33 -#pragma ident "%Z%%M% %I% %E% SMI"
34 -
35 33 #include <netconfig.h>
36 34 #include <netdir.h>
37 35
38 36 #ifdef __cplusplus
39 37 extern "C" {
40 38 #endif
41 39
42 40 /*
43 41 * Globals which should be initialised by daemon main().
44 42 */
45 43 extern size_t end_listen_fds;
46 44 extern size_t num_fds;
47 45 extern int listen_backlog;
48 46 extern int (*Mysvc)(int, struct netbuf, struct netconfig *);
49 47 extern int (*Mysvc4)(int, struct netbuf *, struct netconfig *,
50 48 int, struct netbuf *);
51 49 extern int max_conns_allowed;
52 50
53 51 /*
54 52 * RPC protocol block. Useful for passing registration information.
55 53 */
56 54 struct protob {
57 55 char *serv; /* ASCII service name, e.g. "NFS" */
58 56 int versmin; /* minimum version no. to be registered */
59 57 int versmax; /* maximum version no. to be registered */
60 58 int program; /* program no. to be registered */
61 59 struct protob *next; /* next entry on list */
62 60 };
63 61
64 62 /*
65 63 * Declarations for protocol types and comparison.
|
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
66 64 */
67 65 #define NETSELDECL(x) char *x
68 66 #define NETSELPDECL(x) char **x
69 67 #define NETSELEQ(x, y) (strcmp((x), (y)) == 0)
70 68
71 69 /*
72 70 * nfs library routines
73 71 */
74 72 extern int nfslib_transport_open(struct netconfig *);
75 73 extern int nfslib_bindit(struct netconfig *, struct netbuf **,
76 - struct nd_hostserv *, int);
74 + struct nd_hostserv *, int, int sndbufsz, int rcvbufsz);
77 75 extern void nfslib_log_tli_error(char *, int, struct netconfig *);
76 +extern int do_all_setbuf(struct protob *,
77 + int (*)(int, struct netbuf, struct netconfig *),
78 + int use_pmap, int sndbufsz, int rcvbufsz);
78 79 extern int do_all(struct protob *,
79 80 int (*)(int, struct netbuf, struct netconfig *),
80 81 int use_pmap);
82 +extern void do_one_setbuf(char *, char *, struct protob *,
83 + int (*)(int, struct netbuf, struct netconfig *),
84 + int use_pmap, int sndbufsz, int rcvbufsz);
81 85 extern void do_one(char *, char *, struct protob *,
82 86 int (*)(int, struct netbuf, struct netconfig *),
83 87 int use_pmap);
84 88 extern void poll_for_action(void);
85 89
86 90 #ifdef __cplusplus
87 91 }
88 92 #endif
89 93
90 94 #endif /* _NFS_TBIND_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX