|
From: <ljs...@us...> - 2007-05-25 01:37:45
|
Revision: 408
http://svn.sourceforge.net/cadcdev/?rev=408&view=rev
Author: ljsebald
Date: 2007-05-24 18:37:40 -0700 (Thu, 24 May 2007)
Log Message:
-----------
Rearranged the network shutdown stuff so that it happens in a more correct order.
Modified Paths:
--------------
kos/kernel/net/net_core.c
Modified: kos/kernel/net/net_core.c
===================================================================
--- kos/kernel/net/net_core.c 2007-05-25 01:29:11 UTC (rev 407)
+++ kos/kernel/net/net_core.c 2007-05-25 01:37:40 UTC (rev 408)
@@ -148,6 +148,7 @@
/* Initialize the UDP system */
net_udp_init();
+ /* Initialize the sockets-like interface */
fs_socket_init();
return 0;
@@ -155,9 +156,18 @@
/* Shutdown */
void net_shutdown() {
- /* Shut down all activated network devices */
netif_t *cur;
+ /* Shut down the sockets-like interface */
+ fs_socket_shutdown();
+
+ /* Shut down the UDP system */
+ net_udp_shutdown();
+
+ /* Shut down the ARP cache */
+ net_arp_shutdown();
+
+ /* Shut down all activated network devices */
LIST_FOREACH(cur, &net_if_list, if_list) {
if (cur->flags & NETIF_RUNNING && cur->if_stop)
cur->if_stop(cur);
@@ -168,12 +178,4 @@
/* Blank out the list */
LIST_INIT(&net_if_list);
-
- /* Shut down the ARP cache */
- net_arp_shutdown();
-
- /* Shut down the UDP system */
- net_udp_shutdown();
-
- fs_socket_shutdown();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|