Rev 4332 | Rev 4351 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4332 | Rev 4350 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | /** @addtogroup net |
29 | /** @addtogroup net |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | 32 | ||
33 | /** @file |
33 | /** @file |
34 | * |
- | |
- | 34 | * Wrapper for the bundled networking and TCP/IP stact modules. |
|
- | 35 | * Distributes messages and initializes all module parts. |
|
35 | */ |
36 | */ |
36 | 37 | ||
37 | #include <stdio.h> |
38 | #include <stdio.h> |
38 | 39 | ||
39 | #include <ipc/ipc.h> |
40 | #include <ipc/ipc.h> |
Line 49... | Line 50... | ||
49 | #include "../il/arp/arp_module.h" |
50 | #include "../il/arp/arp_module.h" |
50 | #include "../il/ip/ip_module.h" |
51 | #include "../il/ip/ip_module.h" |
51 | 52 | ||
52 | #include "net.h" |
53 | #include "net.h" |
53 | 54 | ||
- | 55 | /** Networking module global data. |
|
- | 56 | */ |
|
54 | extern net_globals_t net_globals; |
57 | extern net_globals_t net_globals; |
55 | 58 | ||
56 | int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){ |
59 | int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){ |
57 | if( IS_NET_IL_MESSAGE( call )){ |
60 | if( IS_NET_IL_MESSAGE( call )){ |
58 | switch( IPC_GET_TARGET( call )){ |
61 | switch( IPC_GET_TARGET( call )){ |
59 | case SERVICE_IP: |
62 | case SERVICE_IP: |
60 | return ip_message( callid, call, answer, answer_count ); |
63 | return ip_message( callid, call, answer, answer_count ); |
- | 64 | case SERVICE_ARP: |
|
- | 65 | return arp_message( callid, call, answer, answer_count ); |
|
61 | default: |
66 | default: |
62 | return EINVAL; |
67 | return EINVAL; |
63 | } |
68 | } |
64 | }else if( IS_NET_IP_MESSAGE( call )){ |
69 | }else if( IS_NET_IP_MESSAGE( call )){ |
65 | return ip_message( callid, call, answer, answer_count ); |
70 | return ip_message( callid, call, answer, answer_count ); |