Rev 4505 | Rev 4707 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4505 | Rev 4574 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | */ |
58 | */ |
59 | extern net_globals_t net_globals; |
59 | extern net_globals_t net_globals; |
60 | 60 | ||
61 | int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){ |
61 | int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){ |
62 | if(( IPC_GET_METHOD( * call ) == IPC_M_CONNECT_TO_ME ) |
62 | if(( IPC_GET_METHOD( * call ) == IPC_M_CONNECT_TO_ME ) |
63 | || IS_NET_IL_MESSAGE( call )){ |
63 | || IS_NET_IL_MESSAGE( call ) |
- | 64 | || IS_NET_TL_MESSAGE( call ) |
|
- | 65 | || IS_NET_SOCKET_MESSAGE( call )){ |
|
64 | switch( IPC_GET_TARGET( call )){ |
66 | switch( IPC_GET_TARGET( call )){ |
65 | case SERVICE_IP: |
67 | case SERVICE_IP: |
66 | return ip_message( callid, call, answer, answer_count ); |
68 | return ip_message( callid, call, answer, answer_count ); |
67 | case SERVICE_ARP: |
69 | case SERVICE_ARP: |
68 | return arp_message( callid, call, answer, answer_count ); |
70 | return arp_message( callid, call, answer, answer_count ); |
69 | default: |
- | |
70 | return EINVAL; |
- | |
71 | } |
- | |
72 | }else if( IS_NET_TL_MESSAGE( call )){ |
- | |
73 | switch( IPC_GET_TARGET( call )){ |
- | |
74 | case SERVICE_UDP: |
71 | case SERVICE_UDP: |
75 | return udp_message( callid, call, answer, answer_count ); |
72 | return udp_message( callid, call, answer, answer_count ); |
76 | case SERVICE_TCP: |
73 | case SERVICE_TCP: |
77 | return tcp_message( callid, call, answer, answer_count ); |
74 | return tcp_message( callid, call, answer, answer_count ); |
78 | default: |
75 | default: |
Line 88... | Line 85... | ||
88 | return icmp_message( callid, call, answer, answer_count ); |
85 | return icmp_message( callid, call, answer, answer_count ); |
89 | */ }else if( IS_NET_UDP_MESSAGE( call )){ |
86 | */ }else if( IS_NET_UDP_MESSAGE( call )){ |
90 | return udp_message( callid, call, answer, answer_count ); |
87 | return udp_message( callid, call, answer, answer_count ); |
91 | }else if( IS_NET_TCP_MESSAGE( call )){ |
88 | }else if( IS_NET_TCP_MESSAGE( call )){ |
92 | return tcp_message( callid, call, answer, answer_count ); |
89 | return tcp_message( callid, call, answer, answer_count ); |
93 | /* }else if( IS_NET_SOCKET_MESSAGE( call )){ |
- | |
94 | return socket_message( callid, call, answer, answer_count ); |
- | |
95 | */ }else{ |
90 | }else{ |
96 | if( IS_NET_PACKET_MESSAGE( call )){ |
91 | if( IS_NET_PACKET_MESSAGE( call )){ |
97 | return packet_server_message( callid, call, answer, answer_count ); |
92 | return packet_server_message( callid, call, answer, answer_count ); |
98 | }else{ |
93 | }else{ |
99 | return net_message( callid, call, answer, answer_count ); |
94 | return net_message( callid, call, answer, answer_count ); |
100 | } |
95 | } |
Line 128... | Line 123... | ||
128 | // ERROR_PROPAGATE( icmp_initialize( client_connection )); |
123 | // ERROR_PROPAGATE( icmp_initialize( client_connection )); |
129 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_UDP, & phonehash )); |
124 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_UDP, & phonehash )); |
130 | ERROR_PROPAGATE( udp_initialize( client_connection )); |
125 | ERROR_PROPAGATE( udp_initialize( client_connection )); |
131 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_TCP, & phonehash )); |
126 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_TCP, & phonehash )); |
132 | ERROR_PROPAGATE( tcp_initialize( client_connection )); |
127 | ERROR_PROPAGATE( tcp_initialize( client_connection )); |
133 | // ERROR_PROPAGATE( REGISTER_ME( SERVICE_SOCKET, & phonehash )); |
- | |
134 | // ERROR_PROPAGATE( socket_initialize( client_connection )); |
- | |
135 | // ERROR_PROPAGATE( REGISTER_ME( SERVICE_ETHERNET, & phonehash )); |
- | |
136 | // ERROR_PROPAGATE( ethernet_initialize( client_connection )); |
- | |
137 | return EOK; |
128 | return EOK; |
138 | } |
129 | } |
139 | 130 | ||
140 | int read_netif_configuration( char * name, netif_ref netif ){ |
131 | int read_netif_configuration( char * name, netif_ref netif ){ |
141 | ERROR_DECLARE; |
132 | ERROR_DECLARE; |