Changes in uspace/srv/net/net/net.c [ffa2c8ef:5fe7692] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/net/net.c
rffa2c8ef r5fe7692 289 289 if (rc != EOK) 290 290 return rc; 291 291 292 rc = add_module(NULL, &net_globals.modules, (uint8_t *) NE2000_NAME, 292 293 (uint8_t *) NE2000_FILENAME, SERVICE_NE2000, 0, connect_to_service); 293 294 if (rc != EOK) 294 295 return rc; 296 295 297 rc = add_module(NULL, &net_globals.modules, (uint8_t *) ETHERNET_NAME, 296 298 (uint8_t *) ETHERNET_FILENAME, SERVICE_ETHERNET, 0, connect_to_service); 297 299 if (rc != EOK) 298 300 return rc; 301 299 302 rc = add_module(NULL, &net_globals.modules, (uint8_t *) NILDUMMY_NAME, 300 303 (uint8_t *) NILDUMMY_FILENAME, SERVICE_NILDUMMY, 0, connect_to_service); … … 552 555 rc = read_netif_configuration(conf_files[i], netif); 553 556 if (rc != EOK) { 554 measured_strings_destroy(&netif->configuration );557 measured_strings_destroy(&netif->configuration, free); 555 558 free(netif); 556 559 return rc; … … 562 565 if (!setting) { 563 566 fprintf(stderr, "%s: Network interface name is missing\n", NAME); 564 measured_strings_destroy(&netif->configuration );567 measured_strings_destroy(&netif->configuration, free); 565 568 free(netif); 566 569 return EINVAL; … … 571 574 int index = netifs_add(&net_globals.netifs, netif->id, netif); 572 575 if (index < 0) { 573 measured_strings_destroy(&netif->configuration );576 measured_strings_destroy(&netif->configuration, free); 574 577 free(netif); 575 578 return index; … … 583 586 index); 584 587 if (rc != EOK) { 585 measured_strings_destroy(&netif->configuration );586 netifs_exclude_index(&net_globals.netifs, index );588 measured_strings_destroy(&netif->configuration, free); 589 netifs_exclude_index(&net_globals.netifs, index, free); 587 590 return rc; 588 591 } … … 590 593 rc = start_device(netif); 591 594 if (rc != EOK) { 592 printf("%s: Error startinginterface %s (%s)\n", NAME,595 printf("%s: Ignoring failed interface %s (%s)\n", NAME, 593 596 netif->name, str_error(rc)); 594 measured_strings_destroy(&netif->configuration); 595 netifs_exclude_index(&net_globals.netifs, index); 596 597 return rc; 597 measured_strings_destroy(&netif->configuration, free); 598 netifs_exclude_index(&net_globals.netifs, index, free); 599 continue; 598 600 } 599 601
Note:
See TracChangeset
for help on using the changeset viewer.