31,7 → 31,8 |
*/ |
|
/** @file |
* |
* Wrapper for the bundled networking and TCP/IP stact modules. |
* Distributes messages and initializes all module parts. |
*/ |
|
#include <stdio.h> |
51,6 → 52,8 |
|
#include "net.h" |
|
/** Networking module global data. |
*/ |
extern net_globals_t net_globals; |
|
int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){ |
58,6 → 61,8 |
switch( IPC_GET_TARGET( call )){ |
case SERVICE_IP: |
return ip_message( callid, call, answer, answer_count ); |
case SERVICE_ARP: |
return arp_message( callid, call, answer, answer_count ); |
default: |
return EINVAL; |
} |