patch-1.3.33 linux/net/socket.c

Next file: linux/Documentation/networking/ppp.txt
Previous file: linux/net/netlink.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.32/linux/net/socket.c linux/net/socket.c
@@ -1302,27 +1302,19 @@
 #ifdef CONFIG_NETLINK
 	init_netlink();
 #endif		 
-
 	/*
-	 *	Initialize the protocols module. 
+	 *	Attach the routing/device information port.
 	 */
 
-	proto_init();
+#if defined(CONFIG_RTNETLINK)
+	netlink_attach(NETLINK_ROUTE, netlink_donothing);
+#endif
 
-#ifdef CONFIG_NET
-	/* 
-	 *	Initialize the DEV module. 
-	 */
-
-	dev_init();
-  
 	/*
-	 *	And the bottom half handler 
+	 *	Initialize the protocols module. 
 	 */
 
-	bh_base[NET_BH].routine= net_bh;
-	enable_bh(NET_BH);
-#endif  
+	proto_init();
 }
 
 int socket_get_info(char *buffer, char **start, off_t offset, int length)


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this