patch-2.1.74 linux/net/sunrpc/svcsock.c
Next file: linux/CREDITS
Previous file: linux/net/sunrpc/svc.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Fri Dec 19 10:54:10 1997
- Orig file:
v2.1.73/linux/net/sunrpc/svcsock.c
- Orig date:
Tue Dec 2 09:49:41 1997
diff -u --recursive --new-file v2.1.73/linux/net/sunrpc/svcsock.c linux/net/sunrpc/svcsock.c
@@ -886,7 +886,7 @@
/*
* Create socket for RPC service.
*/
-int
+static int
svc_create_socket(struct svc_serv *serv, int protocol, struct sockaddr_in *sin)
{
struct svc_sock *svsk;
@@ -969,3 +969,19 @@
/* svsk->sk_server = NULL; */
}
}
+
+/*
+ * Make a socket for nfsd and lockd
+ */
+int
+svc_makesock(struct svc_serv *serv, int protocol, unsigned short port)
+{
+ struct sockaddr_in sin;
+
+ dprintk("svc: creating socket proto = %d\n", protocol);
+ sin.sin_family = AF_INET;
+ sin.sin_addr.s_addr = INADDR_ANY;
+ sin.sin_port = htons(port);
+ return svc_create_socket(serv, protocol, &sin);
+}
+
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov