Changeset 14f1db0 in mainline for uspace/srv/net/il/ip/ip_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/il/ip/ip_module.c

    r24ab58b3 r14f1db0  
    4747#include <net_interface.h>
    4848#include <packet/packet.h>
    49 #include <il_standalone.h>
     49#include <il_local.h>
    5050
    5151#include "ip.h"
     
    5454/** IP module global data.
    5555 */
    56 extern ip_globals_t     ip_globals;
     56extern ip_globals_t ip_globals;
    5757
    5858/** Processes the IP message.
     
    6464 *  @returns Other error codes as defined for the ip_message() function.
    6565 */
    66 int il_module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
    67         return ip_message(callid, call, answer, answer_count);
     66int il_module_message_standalone(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
     67        return ip_message_standalone(callid, call, answer, answer_count);
    6868}
    6969
     
    7575 *  @returns Other error codes as defined for the REGISTER_ME() macro function.
    7676 */
    77 int il_module_start(async_client_conn_t client_connection){
     77int il_module_start_standalone(async_client_conn_t client_connection){
    7878        ERROR_DECLARE;
    79 
    80         ipcarg_t phonehash;
    81 
     79       
    8280        async_set_client_connection(client_connection);
    8381        ip_globals.net_phone = net_connect_module(SERVICE_NETWORKING);
    8482        ERROR_PROPAGATE(pm_init());
    85         if(ERROR_OCCURRED(ip_initialize(client_connection))
    86                 || ERROR_OCCURRED(REGISTER_ME(SERVICE_IP, &phonehash))){
     83       
     84        ipcarg_t phonehash;
     85        if (ERROR_OCCURRED(ip_initialize(client_connection))
     86            || ERROR_OCCURRED(REGISTER_ME(SERVICE_IP, &phonehash))) {
    8787                pm_destroy();
    8888                return ERROR_CODE;
    8989        }
    90 
     90       
    9191        async_manager();
    92 
     92       
    9393        pm_destroy();
    9494        return EOK;
Note: See TracChangeset for help on using the changeset viewer.