From 3e99973111f67dc50ba09b042d407a5c5cc468a3 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Fri, 4 Mar 2005 02:12:07 +0000 Subject: [PATCH] - 2.6.10 merge introduced SOCK_RAW socket ops, need to export these to vnet - XXX should probably just export inetsw_array --- net/ipv4/af_inet.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index b21c874ce..758ee1198 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -847,7 +847,13 @@ struct proto_ops inet_dgram_ops = { * For SOCK_RAW sockets; should be the same as inet_dgram_ops but without * udp_poll */ -static struct proto_ops inet_sockraw_ops = { +#if defined(CONFIG_VNET) || defined(CONFIG_VNET_MODULE) +struct proto_ops inet_sockraw_ops; +EXPORT_SYMBOL(inet_sockraw_ops); +#else +static +#endif +struct proto_ops inet_sockraw_ops = { .family = PF_INET, .owner = THIS_MODULE, .release = inet_release, -- 2.43.0