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


Ignore:
Timestamp:
2011-06-01T08:43:42Z (15 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d6c1f1
Parents:
9e2e715 (diff), e51a514 (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:

Huuuuuge merge from development - all the work actually :)

File:
1 edited

Legend:

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

    r9e2e715 reb522e8  
    4040#include <adt/measured_strings.h>
    4141#include <adt/module_map.h>
    42 #include <ipc/ipc.h>
    4342#include <ipc/net.h>
    4443#include <errno.h>
     
    6362        int rc;
    6463       
    65         task_id_t task_id = spawn("/srv/ip");
     64        task_id_t task_id = net_spawn((uint8_t *) "/srv/ip");
    6665        if (!task_id)
    6766                return EINVAL;
    6867       
    69         rc = add_module(NULL, &net_globals.modules, IP_NAME,
    70             IP_FILENAME, SERVICE_IP, task_id, ip_connect_module);
     68        rc = add_module(NULL, &net_globals.modules, (uint8_t *) IP_NAME,
     69            (uint8_t *) IP_FILENAME, SERVICE_IP, task_id, ip_connect_module);
    7170        if (rc != EOK)
    7271                return rc;
    7372       
    74         if (!spawn("/srv/icmp"))
     73        if (!net_spawn((uint8_t *) "/srv/icmp"))
    7574                return EINVAL;
    7675       
    77         if (!spawn("/srv/udp"))
     76        if (!net_spawn((uint8_t *) "/srv/udp"))
    7877                return EINVAL;
    7978       
    80         if (!spawn("/srv/tcp"))
     79        if (!net_spawn((uint8_t *) "/srv/tcp"))
    8180                return EINVAL;
    8281       
     
    10099 */
    101100int net_module_message(ipc_callid_t callid, ipc_call_t *call,
    102     ipc_call_t *answer, int *answer_count)
     101    ipc_call_t *answer, size_t *count)
    103102{
    104         if (IS_NET_PACKET_MESSAGE(call))
    105                 return packet_server_message(callid, call, answer, answer_count);
     103        if (IS_NET_PACKET_MESSAGE(*call))
     104                return packet_server_message(callid, call, answer, count);
    106105       
    107         return net_message(callid, call, answer, answer_count);
     106        return net_message(callid, call, answer, count);
    108107}
    109108
Note: See TracChangeset for help on using the changeset viewer.