Changeset 8013637 in mainline for uspace/srv/net/inetsrv/inetsrv.c


Ignore:
Timestamp:
2012-07-20T13:51:28Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8fccd42
Parents:
c5bff3c (diff), 7030bc9 (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:

More mainline changes.

File:
1 moved

Legend:

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

    rc5bff3c r8013637  
    5050#include "icmp.h"
    5151#include "icmp_std.h"
    52 #include "inet.h"
     52#include "inetsrv.h"
    5353#include "inetcfg.h"
    5454#include "inetping.h"
     
    5757#include "sroute.h"
    5858
    59 #define NAME "inet"
     59#define NAME "inetsrv"
    6060
    6161static void inet_client_conn(ipc_callid_t iid, ipc_call_t *icall, void *arg);
     
    6666static int inet_init(void)
    6767{
    68         service_id_t sid;
    69         int rc;
    70 
    7168        log_msg(LVL_DEBUG, "inet_init()");
    72 
     69       
    7370        async_set_client_connection(inet_client_conn);
    74 
    75         rc = loc_server_register(NAME);
     71       
     72        int rc = loc_server_register(NAME);
    7673        if (rc != EOK) {
    7774                log_msg(LVL_ERROR, "Failed registering server (%d).", rc);
    7875                return EEXIST;
    7976        }
    80 
     77       
     78        service_id_t sid;
    8179        rc = loc_service_register_with_iface(SERVICE_NAME_INET, &sid,
    8280            INET_PORT_DEFAULT);
     
    8583                return EEXIST;
    8684        }
    87 
     85       
    8886        rc = loc_service_register_with_iface(SERVICE_NAME_INETCFG, &sid,
    8987            INET_PORT_CFG);
     
    9290                return EEXIST;
    9391        }
    94 
     92       
    9593        rc = loc_service_register_with_iface(SERVICE_NAME_INETPING, &sid,
    9694            INET_PORT_PING);
     
    9997                return EEXIST;
    10098        }
    101 
     99       
    102100        rc = inet_link_discovery_start();
    103101        if (rc != EOK)
    104102                return EEXIST;
    105 
     103       
    106104        return EOK;
    107105}
Note: See TracChangeset for help on using the changeset viewer.