Ignore:
Timestamp:
2010-03-30T18:39:04Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7553689
Parents:
7d6fe4db
Message:

Networking work:
Split the networking stack into end-user library (libsocket) and two helper libraries (libnet and libnetif).
Don't use over-the-hand compiling and linking, but rather separation of conserns.
There might be still some issues and the non-modular networking architecture is currently broken, but this will be fixed soon.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/netif/netif_nil_bundle.c

    r7d6fe4db r849ed54  
    3737
    3838#include <async.h>
    39 
    4039#include <ipc/ipc.h>
    4140
    42 #include "../messages.h"
    43 
    44 #include "../structures/packet/packet.h"
    45 
    46 #include "../nil/nil_module.h"
    47 
    48 #include "netif.h"
    49 
    50 /** Network interface module global data.
    51  */
    52 extern netif_globals_t netif_globals;
     41#include <net_messages.h>
     42#include <packet/packet.h>
     43#include <nil_module.h>
     44#include <netif_nil_bundle.h>
     45#include <netif.h>
    5346
    5447/** Distributes the messages between the module parts.
     
    6154 *  @returns Other error codes as defined for each specific module message function.
    6255 */
    63 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count);
     56int netif_nil_module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
     57        if(IS_NET_NIL_MESSAGE(call) || (IPC_GET_METHOD(*call) == IPC_M_CONNECT_TO_ME)){
     58                return nil_message(callid, call, answer, answer_count);
     59        }else{
     60                return netif_message(callid, call, answer, answer_count);
     61        }
     62}
    6463
    6564/** Starts the bundle network interface module.
     
    6968 *  @returns Other error codes as defined for each specific module message function.
    7069 */
    71 int module_start(async_client_conn_t client_connection);
    72 
    73 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){
    74         if(IS_NET_NIL_MESSAGE(call) || (IPC_GET_METHOD(*call) == IPC_M_CONNECT_TO_ME)){
    75                 return nil_message(callid, call, answer, answer_count);
    76         }else{
    77                 return netif_message(callid, call, answer, answer_count);
    78         }
    79 }
    80 
    81 int module_start(async_client_conn_t client_connection){
     70int netif_nil_module_start(async_client_conn_t client_connection){
    8271        ERROR_DECLARE;
    8372
Note: See TracChangeset for help on using the changeset viewer.