Skip to contentSkip to conversation

minor change to netsyms.c

PATCH In review David Chamness 2 participants 2 messages Jul 11, 2001 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 minor change to netsyms.c

Currently, inet_stream_ops only gets exported if experimental code (IPV6 module or KHTTPD) is configured. This patch makes the exporting of inet_stream_ops the same as inet_dgram_ops, whenever CONFIG_INET is defined. I have written a module that needs both these symbols exported, and it would be much cleaner if they both were exported in a consistent manner.

Thanks,
David Chamness
PolyServe, Inc.

net/netsyms.c renamed from linux/net/netsyms.c +1 -1
@@ -251,6 +251,7 @@
 EXPORT_SYMBOL(ip_mc_inc_group);
 EXPORT_SYMBOL(ip_mc_dec_group);
 EXPORT_SYMBOL(ip_finish_output);
+EXPORT_SYMBOL(inet_stream_ops);
 EXPORT_SYMBOL(inet_dgram_ops);
 EXPORT_SYMBOL(ip_cmsg_recv);
 EXPORT_SYMBOL(inet_addr_type); 
@@ -281,7 +282,6 @@
 #endif
 #if defined (CONFIG_IPV6_MODULE) || defined (CONFIG_KHTTPD) || defined (CONFIG_KHTTPD_MODULE)
 /* inet functions common to v4 and v6 */
-EXPORT_SYMBOL(inet_stream_ops);
 EXPORT_SYMBOL(inet_release);
 EXPORT_SYMBOL(inet_stream_connect);
 EXPORT_SYMBOL(inet_dgram_connect);
#1 lore raw
Quoted 3 lines · David Chamness

I have written a module that needs both these symbols exported, and it would be much cleaner if they both were exported in a consistent manner.

I've applied your patch.

Later,
David S. Miller
[email protected]