From: Mark Huang Date: Fri, 4 Mar 2005 02:12:07 +0000 (+0000) Subject: - 2.6.10 merge introduced SOCK_RAW socket ops, need to export these to X-Git-Tag: before-fedora-2_6_18-1_2239_FC5-vs2_0_2_2-rc6-merge~239 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=3e99973111f67dc50ba09b042d407a5c5cc468a3;p=linux-2.6.git - 2.6.10 merge introduced SOCK_RAW socket ops, need to export these to vnet - XXX should probably just export inetsw_array --- 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,