Subversion Repositories HelenOS

Rev

Rev 4707 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4707 Rev 4719
Line 68... Line 68...
68
    netifs_initialize( & net_globals.netifs );
68
    netifs_initialize( & net_globals.netifs );
69
    char_map_initialize( & net_globals.netif_names );
69
    char_map_initialize( & net_globals.netif_names );
70
    modules_initialize( & net_globals.modules );
70
    modules_initialize( & net_globals.modules );
71
    measured_strings_initialize( & net_globals.configuration );
71
    measured_strings_initialize( & net_globals.configuration );
72
 
72
 
73
    // run self tests
-
 
74
//  ERROR_PROPAGATE( self_test());
-
 
75
 
-
 
76
    ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, LO_NAME, LO_FILENAME, SERVICE_LO, 0, connect_to_service ));
73
    ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, LO_NAME, LO_FILENAME, SERVICE_LO, 0, connect_to_service ));
77
    ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, DP8390_NAME, DP8390_FILENAME, SERVICE_DP8390, 0, connect_to_service ));
74
    ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, DP8390_NAME, DP8390_FILENAME, SERVICE_DP8390, 0, connect_to_service ));
78
    ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, ETHERNET_NAME, ETHERNET_FILENAME, SERVICE_ETHERNET, 0, connect_to_service ));
75
    ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, ETHERNET_NAME, ETHERNET_FILENAME, SERVICE_ETHERNET, 0, connect_to_service ));
79
    ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, NILDUMMY_NAME, NILDUMMY_FILENAME, SERVICE_NILDUMMY, 0, connect_to_service ));
76
    ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, NILDUMMY_NAME, NILDUMMY_FILENAME, SERVICE_NILDUMMY, 0, connect_to_service ));
80
 
77
 
Line 82... Line 79...
82
    if( ! task_id ) return EINVAL;
79
    if( ! task_id ) return EINVAL;
83
    ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, IP_NAME, IP_FILENAME, SERVICE_IP, task_id, ip_connect_module ));
80
    ERROR_PROPAGATE( add_module( NULL, & net_globals.modules, IP_NAME, IP_FILENAME, SERVICE_IP, task_id, ip_connect_module ));
84
    if( ! spawn( "/srv/icmp" )) return EINVAL;
81
    if( ! spawn( "/srv/icmp" )) return EINVAL;
85
    if( ! spawn( "/srv/udp" )) return EINVAL;
82
    if( ! spawn( "/srv/udp" )) return EINVAL;
86
    if( ! spawn( "/srv/tcp" )) return EINVAL;
83
    if( ! spawn( "/srv/tcp" )) return EINVAL;
87
//  if( ! spawn( "/srv/rarp" )) return EINVAL;
-
 
88
    return EOK;
84
    return EOK;
89
}
85
}
90
 
86
 
91
int read_netif_configuration( char * name, netif_ref netif ){
87
int read_netif_configuration( char * name, netif_ref netif ){
92
    ERROR_DECLARE;
88
    ERROR_DECLARE;