git://git.onelab.eu
/
linux-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca631a4
)
- 2.6.10 merge introduced SOCK_RAW socket ops, need to export these to
author
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 4 Mar 2005 02:12:07 +0000
(
02:12
+0000)
committer
Mark 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
patch
|
blob
|
history
diff --git
a/net/ipv4/af_inet.c
b/net/ipv4/af_inet.c
index
b21c874
..
758ee11
100644
(file)
--- 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,