Changeset 14f1db0 in mainline for uspace/srv/net/il/arp/arp_module.c


Ignore:
Timestamp:
2010-04-09T12:54:57Z (15 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/il/arp/arp_module.c

    r24ab58b3 r14f1db0  
    4848#include <net_interface.h>
    4949#include <packet/packet.h>
    50 #include <il_standalone.h>
     50#include <il_local.h>
    5151
    5252#include "arp.h"
     
    6565 *  @returns Other error codes as defined for the arp_message() function.
    6666 */
    67 int il_module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
    68         return arp_message(callid, call, answer, answer_count);
     67int il_module_message_standalone(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
     68        return arp_message_standalone(callid, call, answer, answer_count);
    6969}
    7070
     
    7676 *  @returns Other error codes as defined for the REGISTER_ME() macro function.
    7777 */
    78 int il_module_start(async_client_conn_t client_connection){
     78int il_module_start_standalone(async_client_conn_t client_connection){
    7979        ERROR_DECLARE;
    80 
    81         ipcarg_t phonehash;
    82 
     80       
    8381        async_set_client_connection(client_connection);
    8482        arp_globals.net_phone = net_connect_module(SERVICE_NETWORKING);
    8583        ERROR_PROPAGATE(pm_init());
    86         if(ERROR_OCCURRED(arp_initialize(client_connection))
    87                 || ERROR_OCCURRED(REGISTER_ME(SERVICE_ARP, &phonehash))){
     84       
     85        ipcarg_t phonehash;
     86        if (ERROR_OCCURRED(arp_initialize(client_connection))
     87            || ERROR_OCCURRED(REGISTER_ME(SERVICE_ARP, &phonehash))) {
    8888                pm_destroy();
    8989                return ERROR_CODE;
    9090        }
    91 
     91       
    9292        async_manager();
    93 
     93       
    9494        pm_destroy();
    9595        return EOK;
Note: See TracChangeset for help on using the changeset viewer.