Changeset 0b749a3 in mainline for uspace/srv/net/net/net_standalone.c


Ignore:
Timestamp:
2010-11-22T15:39:53Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0eddb76, aae339e9
Parents:
9a1d8ab (diff), 8cd1aa5e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge development/ changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/net/net_standalone.c

    r9a1d8ab r0b749a3  
    2828
    2929/** @addtogroup net
    30  *  @{
     30 * @{
    3131 */
    3232
    3333/** @file
    34  *  Wrapper for the standalone networking module.
     34 * Wrapper for the standalone networking module.
    3535 */
    36 
    37 #include <str.h>
    38 
    39 #include <ipc/ipc.h>
    40 
    41 #include <net_messages.h>
    42 #include <ip_interface.h>
    43 #include <adt/measured_strings.h>
    44 #include <adt/module_map.h>
    45 #include <packet/packet_server.h>
    4636
    4737#include "net.h"
    4838
    49 /** Networking module global data.
    50  */
     39#include <str.h>
     40#include <adt/measured_strings.h>
     41#include <adt/module_map.h>
     42#include <ipc/ipc.h>
     43#include <ipc/net.h>
     44#include <errno.h>
     45
     46#include <ip_interface.h>
     47#include <packet_server.h>
     48
     49/** Networking module global data. */
    5150extern net_globals_t net_globals;
    5251
     
    6059 *
    6160 */
    62 int net_initialize_build(async_client_conn_t client_connection){
    63         ERROR_DECLARE;
     61int net_initialize_build(async_client_conn_t client_connection)
     62{
     63        int rc;
    6464       
    6565        task_id_t task_id = spawn("/srv/ip");
     
    6767                return EINVAL;
    6868       
    69         ERROR_PROPAGATE(add_module(NULL, &net_globals.modules, IP_NAME,
    70             IP_FILENAME, SERVICE_IP, task_id, ip_connect_module));
     69        rc = add_module(NULL, &net_globals.modules, IP_NAME,
     70            IP_FILENAME, SERVICE_IP, task_id, ip_connect_module);
     71        if (rc != EOK)
     72                return rc;
    7173       
    7274        if (!spawn("/srv/icmp"))
     
    9496 * @return EOK on success.
    9597 * @return ENOTSUP if the message is not known.
    96  * @return Other error codes as defined for each bundled module
    97  *         message function.
     98 * @return Other error codes.
    9899 *
    99100 */
Note: See TracChangeset for help on using the changeset viewer.