Changeset 7715994 in mainline for uspace/srv/net/net/net_standalone.c


Ignore:
Timestamp:
2010-03-13T12:17:02Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ba20a6b
Parents:
d0febca (diff), 2070570 (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 mainline changes.

File:
1 edited

Legend:

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

    rd0febca r7715994  
    5353extern net_globals_t    net_globals;
    5454
    55 int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){
    56         if( IS_NET_PACKET_MESSAGE( call )){
    57                 return packet_server_message( callid, call, answer, answer_count );
    58         }else{
    59                 return net_message( callid, call, answer, answer_count );
     55int net_initialize_build(async_client_conn_t client_connection){
     56        ERROR_DECLARE;
     57
     58        task_id_t task_id;
     59
     60        task_id = spawn("/srv/ip");
     61        if(! task_id){
     62                return EINVAL;
    6063        }
     64        ERROR_PROPAGATE(add_module(NULL, &net_globals.modules, IP_NAME, IP_FILENAME, SERVICE_IP, task_id, ip_connect_module));
     65        if(! spawn("/srv/icmp")){
     66                return EINVAL;
     67        }
     68        if(! spawn("/srv/udp")){
     69                return EINVAL;
     70        }
     71        if(! spawn("/srv/tcp")){
     72                return EINVAL;
     73        }
     74        return EOK;
    6175}
    6276
    63 int net_initialize_build( async_client_conn_t client_connection ){
    64         ERROR_DECLARE;
    65 
    66         task_id_t       task_id;
    67 
    68         task_id = spawn( "/srv/ip" );
    69         if( ! task_id ) return EINVAL;
    70         ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, IP_NAME, IP_FILENAME, SERVICE_IP, task_id, ip_connect_module ));
    71         if( ! spawn( "/srv/icmp" )) return EINVAL;
    72         if( ! spawn( "/srv/udp" )) return EINVAL;
    73         if( ! spawn( "/srv/tcp" )) return EINVAL;
    74         return EOK;
     77int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
     78        if(IS_NET_PACKET_MESSAGE(call)){
     79                return packet_server_message(callid, call, answer, answer_count);
     80        }else{
     81                return net_message(callid, call, answer, answer_count);
     82        }
    7583}
    7684
Note: See TracChangeset for help on using the changeset viewer.