Rev 4708 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4708 | Rev 4719 | ||
---|---|---|---|
Line 47... | Line 47... | ||
47 | #include "../structures/module_map.h" |
47 | #include "../structures/module_map.h" |
48 | #include "../structures/packet/packet_server.h" |
48 | #include "../structures/packet/packet_server.h" |
49 | 49 | ||
50 | #include "../il/arp/arp_module.h" |
50 | #include "../il/arp/arp_module.h" |
51 | #include "../il/ip/ip_module.h" |
51 | #include "../il/ip/ip_module.h" |
52 | #include "../il/icmp/icmp_module.h" |
52 | #include "../tl/icmp/icmp_module.h" |
53 | #include "../tl/udp/udp_module.h" |
53 | #include "../tl/udp/udp_module.h" |
54 | #include "../tl/tcp/tcp_module.h" |
54 | #include "../tl/tcp/tcp_module.h" |
55 | 55 | ||
56 | #include "net.h" |
56 | #include "net.h" |
57 | 57 | ||
Line 80... | Line 80... | ||
80 | } |
80 | } |
81 | }else if( IS_NET_IP_MESSAGE( call )){ |
81 | }else if( IS_NET_IP_MESSAGE( call )){ |
82 | return ip_message( callid, call, answer, answer_count ); |
82 | return ip_message( callid, call, answer, answer_count ); |
83 | }else if( IS_NET_ARP_MESSAGE( call )){ |
83 | }else if( IS_NET_ARP_MESSAGE( call )){ |
84 | return arp_message( callid, call, answer, answer_count ); |
84 | return arp_message( callid, call, answer, answer_count ); |
85 | /* }else if( IS_NET_RARP_MESSAGE( call )){ |
- | |
86 | return rarp_message( callid, call, answer, answer_count ); |
- | |
87 | */ }else if( IS_NET_ICMP_MESSAGE( call )){ |
85 | }else if( IS_NET_ICMP_MESSAGE( call )){ |
88 | return icmp_message( callid, call, answer, answer_count ); |
86 | return icmp_message( callid, call, answer, answer_count ); |
89 | }else if( IS_NET_UDP_MESSAGE( call )){ |
87 | }else if( IS_NET_UDP_MESSAGE( call )){ |
90 | return udp_message( callid, call, answer, answer_count ); |
88 | return udp_message( callid, call, answer, answer_count ); |
91 | }else if( IS_NET_TCP_MESSAGE( call )){ |
89 | }else if( IS_NET_TCP_MESSAGE( call )){ |
92 | return tcp_message( callid, call, answer, answer_count ); |
90 | return tcp_message( callid, call, answer, answer_count ); |
Line 107... | Line 105... | ||
107 | netifs_initialize( & net_globals.netifs ); |
105 | netifs_initialize( & net_globals.netifs ); |
108 | char_map_initialize( & net_globals.netif_names ); |
106 | char_map_initialize( & net_globals.netif_names ); |
109 | modules_initialize( & net_globals.modules ); |
107 | modules_initialize( & net_globals.modules ); |
110 | measured_strings_initialize( & net_globals.configuration ); |
108 | measured_strings_initialize( & net_globals.configuration ); |
111 | 109 | ||
112 | // run self tests |
- | |
113 | // ERROR_PROPAGATE( self_test()); |
- | |
114 | - | ||
115 | ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, LO_NAME, LO_FILENAME, SERVICE_LO, 0, connect_to_service )); |
110 | ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, LO_NAME, LO_FILENAME, SERVICE_LO, 0, connect_to_service )); |
116 | ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, DP8390_NAME, DP8390_FILENAME, SERVICE_DP8390, 0, connect_to_service )); |
111 | ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, DP8390_NAME, DP8390_FILENAME, SERVICE_DP8390, 0, connect_to_service )); |
117 | ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, ETHERNET_NAME, ETHERNET_FILENAME, SERVICE_ETHERNET, 0, connect_to_service )); |
112 | ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, ETHERNET_NAME, ETHERNET_FILENAME, SERVICE_ETHERNET, 0, connect_to_service )); |
118 | ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, NILDUMMY_NAME, NILDUMMY_FILENAME, SERVICE_NILDUMMY, 0, connect_to_service )); |
113 | ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, NILDUMMY_NAME, NILDUMMY_FILENAME, SERVICE_NILDUMMY, 0, connect_to_service )); |
119 | 114 | ||
120 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_IP, & phonehash )); |
115 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_IP, & phonehash )); |
121 | ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, IP_NAME, IP_FILENAME, SERVICE_IP, task_get_id(), ip_connect_module )); |
116 | ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, IP_NAME, IP_FILENAME, SERVICE_IP, task_get_id(), ip_connect_module )); |
122 | ERROR_PROPAGATE( ip_initialize( client_connection )); |
117 | ERROR_PROPAGATE( ip_initialize( client_connection )); |
123 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_ARP, & phonehash )); |
118 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_ARP, & phonehash )); |
124 | ERROR_PROPAGATE( arp_initialize( client_connection )); |
119 | ERROR_PROPAGATE( arp_initialize( client_connection )); |
125 | // ERROR_PROPAGATE( REGISTER_ME( SERVICE_RARP, & phonehash )); |
- | |
126 | // ERROR_PROPAGATE( rarp_initialize( client_connection )); |
- | |
127 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_ICMP, & phonehash )); |
120 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_ICMP, & phonehash )); |
128 | ERROR_PROPAGATE( icmp_initialize( client_connection )); |
121 | ERROR_PROPAGATE( icmp_initialize( client_connection )); |
129 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_UDP, & phonehash )); |
122 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_UDP, & phonehash )); |
130 | ERROR_PROPAGATE( udp_initialize( client_connection )); |
123 | ERROR_PROPAGATE( udp_initialize( client_connection )); |
131 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_TCP, & phonehash )); |
124 | ERROR_PROPAGATE( REGISTER_ME( SERVICE_TCP, & phonehash )); |