Changes in uspace/srv/net/net/net.c [774e6d1a:73ac2e9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/net/net.c
r774e6d1a r73ac2e9 45 45 #include <stdio.h> 46 46 #include <str.h> 47 #include <str_error.h> 47 48 48 49 #include <ipc/ipc.h> … … 51 52 #include <ipc/net_net.h> 52 53 #include <ipc/il.h> 54 #include <ipc/nil.h> 53 55 54 56 #include <net/modules.h> … … 62 64 63 65 #include <netif_remote.h> 64 #include <nil_ interface.h>66 #include <nil_remote.h> 65 67 #include <net_interface.h> 66 68 #include <ip_interface.h> … … 288 290 if (rc != EOK) 289 291 return rc; 290 rc = add_module(NULL, &net_globals.modules, (uint8_t *) DP8390_NAME,291 (uint8_t *) DP8390_FILENAME, SERVICE_DP8390, 0, connect_to_service);292 rc = add_module(NULL, &net_globals.modules, (uint8_t *) NE2000_NAME, 293 (uint8_t *) NE2000_FILENAME, SERVICE_NE2000, 0, connect_to_service); 292 294 if (rc != EOK) 293 295 return rc; … … 331 333 if (rc != EOK) 332 334 return rc; 333 334 335 335 336 rc = net_initialize(client_connection); … … 591 592 rc = start_device(netif); 592 593 if (rc != EOK) { 594 printf("%s: Error starting interface %s (%s)\n", NAME, 595 netif->name, str_error(rc)); 593 596 measured_strings_destroy(&netif->configuration); 594 597 netifs_exclude_index(&net_globals.netifs, index); 598 595 599 return rc; 596 600 } … … 709 713 int main(int argc, char *argv[]) 710 714 { 711 int rc; 712 713 rc = net_module_start(net_client_connection); 714 if (rc != EOK) { 715 fprintf(stderr, "%s: net_module_start error %i\n", NAME, rc); 716 return rc; 717 } 718 719 return EOK; 715 return net_module_start(net_client_connection); 720 716 } 721 717
Note:
See TracChangeset
for help on using the changeset viewer.