Subversion Repositories HelenOS

Rev

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

Rev 4307 Rev 4327
Line 121... Line 121...
121
}
121
}
122
 
122
 
123
int read_netif_configuration( char * name, netif_ref netif ){
123
int read_netif_configuration( char * name, netif_ref netif ){
124
    ERROR_DECLARE;
124
    ERROR_DECLARE;
125
 
125
 
126
    if( strncmp( name, "lo", 2 ) == 0 ){
126
    if( str_lcmp( name, "lo", 2 ) == 0 ){
127
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "NAME", LO_NAME ));
127
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "NAME", LO_NAME ));
128
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "NETIF", LO_NAME ));
128
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "NETIF", LO_NAME ));
129
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "IL", IP_NAME ));
129
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "IL", IP_NAME ));
130
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "IP_CONFIG", "static" ));
130
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "IP_CONFIG", "static" ));
131
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "IP_ADDR", "127.0.0.1" ));
131
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "IP_ADDR", "127.0.0.1" ));
132
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "NETMASK", "255.0.0.0" ));
132
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "NETMASK", "255.0.0.0" ));
133
    }else if( strncmp( name, "ne2k", 4 ) == 0 ){
133
    }else if( str_lcmp( name, "ne2k", 4 ) == 0 ){
134
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "NAME", "eth0" ));
134
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "NAME", "eth0" ));
135
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "NETIF", DP8390_NAME ));
135
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "NETIF", DP8390_NAME ));
136
        // ethernet bundled in dp8390
136
        // ethernet bundled in dp8390
137
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "NIL", DP8390_NAME ));
137
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "NIL", DP8390_NAME ));
138
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "IL", IP_NAME ));
138
        ERROR_PROPAGATE( add_configuration( & netif->configuration, "IL", IP_NAME ));