#include <net/sock.h>
#include <linux/netfilter.h>
+#include <linux/vs_base.h>
#include <linux/vs_socket.h>
static int sock_no_open(struct inode *irrelevant, struct file *dontcare);
return sock;
}
-EXPORT_SYMBOL_GPL(sock_alloc);
-
/*
* In theory you can't get an open on this inode, but /proc provides
* a back door. Remember to keep it shut otherwise you'll let the
if (!sock)
goto out;
- err = -ENFILE;
+ err = -EMFILE;
if (!(newsock = sock_alloc()))
goto out_put;
/* ABI emulation layers need these two */
EXPORT_SYMBOL(move_addr_to_kernel);
EXPORT_SYMBOL(move_addr_to_user);
+EXPORT_SYMBOL_GPL(sock_alloc);
EXPORT_SYMBOL(sock_create);
EXPORT_SYMBOL(sock_create_kern);
EXPORT_SYMBOL(sock_create_lite);