Changeset 0a9ea4a in mainline for uspace/srv/net/net/net.c


Ignore:
Timestamp:
2011-01-14T14:28:57Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1d7a74e, 6336b6e
Parents:
45019865 (diff), 2f60e57d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge development into lelian/hidd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/net/net.c

    r45019865 r0a9ea4a  
    4545#include <stdio.h>
    4646#include <str.h>
     47#include <str_error.h>
    4748
    4849#include <ipc/ipc.h>
     
    5152#include <ipc/net_net.h>
    5253#include <ipc/il.h>
     54#include <ipc/nil.h>
    5355
    5456#include <net/modules.h>
     
    6264
    6365#include <netif_remote.h>
    64 #include <nil_interface.h>
     66#include <nil_remote.h>
    6567#include <net_interface.h>
    6668#include <ip_interface.h>
     
    288290        if (rc != EOK)
    289291                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);
    292294        if (rc != EOK)
    293295                return rc;
     
    331333        if (rc != EOK)
    332334                return rc;
    333        
    334335       
    335336        rc = net_initialize(client_connection);
     
    591592                rc = start_device(netif);
    592593                if (rc != EOK) {
     594                        printf("%s: Error starting interface %s (%s)\n", NAME,
     595                            netif->name, str_error(rc));
    593596                        measured_strings_destroy(&netif->configuration);
    594597                        netifs_exclude_index(&net_globals.netifs, index);
     598                       
    595599                        return rc;
    596600                }
     
    709713int main(int argc, char *argv[])
    710714{
    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);
    720716}
    721717
Note: See TracChangeset for help on using the changeset viewer.