- 2.6.10 merge introduced SOCK_RAW socket ops, need to export these to
authorMark Huang <mlhuang@cs.princeton.edu>
Fri, 4 Mar 2005 02:12:07 +0000 (02:12 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Fri, 4 Mar 2005 02:12:07 +0000 (02:12 +0000)
  vnet
- XXX should probably just export inetsw_array

net/ipv4/af_inet.c

index b21c874..758ee11 100644 (file)
@@ -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,