[patch 16/21] Fix socket creation
Florian Delizy <[email protected]> Wed, 01 Nov 2006 05:11:49 +0100
| Newsgroups | gmane.linux.cluster.openmosix.devel |
|---|---|
| Message-ID | <[email protected]> |
as suggested by Matt Miller, the sock_create is not to be used in the kernel side should use sock_create_kern instead ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ openMosix-devel mailing list openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/openmosix-devel
use-sock_create_kern.patch
(text/x-patch, 792 B)
Subject: [patch @num@/@total@] Fix socket creation as suggested by Matt Miller, the sock_create is not to be used in the kernel side should use sock_create_kern instead Index: linux/hpc/kcomd.c =================================================================== --- linux.orig/hpc/kcomd.c 2006-10-27 22:08:51.000000000 +0200 +++ linux/hpc/kcomd.c 2006-10-27 22:08:55.000000000 +0200 @@ -25,6 +25,7 @@ #include <net/tcp.h> #include <linux/inet.h> +#include <linux/net.h> #include <hpc/kcom.h> #include <hpc/prototype.h> #include <hpc/debug.h> @@ -43,7 +44,7 @@ struct socket *sock; int ret, fd; - ret = sock_create(saddr->sa_family, SOCK_STREAM, IPPROTO_TCP, &sock); + ret = sock_create_kern(saddr->sa_family, SOCK_STREAM, IPPROTO_TCP, &sock); if (ret < 0) goto err_fd;