Changeset 14f1db0 in mainline for uspace/srv/net/nil/eth/eth_module.c


Ignore:
Timestamp:
2010-04-09T12:54:57Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1caa3c2
Parents:
24ab58b3
Message:

networking overhaul:

  • separation of conserns
  • removal of (almost all) overlaping symbols, libnetif is not needed anymore
  • again, it is possible to build the networking in multiple architecture configurations (however, currently only the bundling netif and nil layers is supported, more to come)
  • code style updates and fixes (still a huge amount of work to do)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/nil/eth/eth_module.c

    r24ab58b3 r14f1db0  
    4646#include <net_interface.h>
    4747#include <packet/packet.h>
    48 #include <nil_module.h>
    49 #include <nil_standalone.h>
     48#include <nil_local.h>
    5049
    5150#include "eth.h"
     
    5958 *  @returns Other error codes as defined for the REGISTER_ME() macro function.
    6059 */
    61 int nil_module_start(async_client_conn_t client_connection){
     60int nil_module_start_standalone(async_client_conn_t client_connection)
     61{
    6262        ERROR_DECLARE;
    63 
     63       
     64        async_set_client_connection(client_connection);
     65        int net_phone = net_connect_module(SERVICE_NETWORKING);
     66        ERROR_PROPAGATE(pm_init());
     67       
    6468        ipcarg_t phonehash;
    65         int net_phone;
    66 
    67         async_set_client_connection(client_connection);
    68         net_phone = net_connect_module(SERVICE_NETWORKING);
    69         ERROR_PROPAGATE(pm_init());
    70         if(ERROR_OCCURRED(nil_initialize(net_phone))
    71                 || ERROR_OCCURRED(REGISTER_ME(SERVICE_ETHERNET, &phonehash))){
     69        if (ERROR_OCCURRED(nil_initialize(net_phone))
     70            || ERROR_OCCURRED(REGISTER_ME(SERVICE_ETHERNET, &phonehash))) {
    7271                pm_destroy();
    7372                return ERROR_CODE;
    7473        }
    75 
     74       
    7675        async_manager();
    77 
     76       
    7877        pm_destroy();
    7978        return EOK;
     
    9594 *
    9695 */
    97 int nil_module_message(const char *name, ipc_callid_t callid, ipc_call_t *call,
     96int nil_module_message_standalone(const char *name, ipc_callid_t callid, ipc_call_t *call,
    9897    ipc_call_t *answer, int *answer_count)
    9998{
    100         return nil_message(name, callid, call, answer, answer_count);
     99        return nil_message_standalone(name, callid, call, answer, answer_count);
    101100}
    102101
Note: See TracChangeset for help on using the changeset viewer.