2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
27 /* All Rights Reserved */
28
29 /*
30 * Portions of this source code were derived from Berkeley 4.3 BSD
31 * under license from the Regents of the University of California.
32 */
33
34 #pragma ident "%Z%%M% %I% %E% SMI"
35
36 /*
37 * This module provides the user level support for the NFSv4
38 * callback program. It is modeled after nfsd. When a nfsv4
39 * mount occurs, the mount command forks and the child runs
40 * start_nfs4_callback. If this is the first mount, then the
41 * process will hang around listening for incoming connection
42 * requests from the nfsv4 server.
43 *
44 * For connection-less protocols, the krpc is started immediately.
45 * For connection oriented protocols, the kernel module is informed
46 * of netid and universal address that it can give this
47 * information to the server during setclientid.
48 */
49
50 #include <sys/param.h>
51 #include <sys/types.h>
52 #include <syslog.h>
53 #include <tiuser.h>
54 #include <rpc/rpc.h>
55 #include <errno.h>
|
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
27 /* All Rights Reserved */
28
29 /*
30 * Portions of this source code were derived from Berkeley 4.3 BSD
31 * under license from the Regents of the University of California.
32 */
33
34 /*
35 * This module provides the user level support for the NFSv4
36 * callback program. It is modeled after nfsd. When a nfsv4
37 * mount occurs, the mount command forks and the child runs
38 * start_nfs4_callback. If this is the first mount, then the
39 * process will hang around listening for incoming connection
40 * requests from the nfsv4 server.
41 *
42 * For connection-less protocols, the krpc is started immediately.
43 * For connection oriented protocols, the kernel module is informed
44 * of netid and universal address that it can give this
45 * information to the server during setclientid.
46 */
47
48 #include <sys/param.h>
49 #include <sys/types.h>
50 #include <syslog.h>
51 #include <tiuser.h>
52 #include <rpc/rpc.h>
53 #include <errno.h>
|