Changeset e6a78b9 in mainline for uspace/srv/net/inetsrv/inetsrv.c
- Timestamp:
- 2012-06-29T15:31:44Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9432f08
- Parents:
- 34ab31c0 (diff), 0bbd13e (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inetsrv.c
r34ab31c0 re6a78b9 50 50 #include "icmp.h" 51 51 #include "icmp_std.h" 52 #include "inet .h"52 #include "inetsrv.h" 53 53 #include "inetcfg.h" 54 54 #include "inetping.h" … … 57 57 #include "sroute.h" 58 58 59 #define NAME "inet "59 #define NAME "inetsrv" 60 60 61 61 static void inet_client_conn(ipc_callid_t iid, ipc_call_t *icall, void *arg); … … 66 66 static int inet_init(void) 67 67 { 68 service_id_t sid;69 int rc;70 71 68 log_msg(LVL_DEBUG, "inet_init()"); 72 69 73 70 async_set_client_connection(inet_client_conn); 74 75 rc = loc_server_register(NAME);71 72 int rc = loc_server_register(NAME); 76 73 if (rc != EOK) { 77 74 log_msg(LVL_ERROR, "Failed registering server (%d).", rc); 78 75 return EEXIST; 79 76 } 80 77 78 service_id_t sid; 81 79 rc = loc_service_register_with_iface(SERVICE_NAME_INET, &sid, 82 80 INET_PORT_DEFAULT); … … 85 83 return EEXIST; 86 84 } 87 85 88 86 rc = loc_service_register_with_iface(SERVICE_NAME_INETCFG, &sid, 89 87 INET_PORT_CFG); … … 92 90 return EEXIST; 93 91 } 94 92 95 93 rc = loc_service_register_with_iface(SERVICE_NAME_INETPING, &sid, 96 94 INET_PORT_PING); … … 99 97 return EEXIST; 100 98 } 101 99 102 100 rc = inet_link_discovery_start(); 103 101 if (rc != EOK) 104 102 return EEXIST; 105 103 106 104 return EOK; 107 105 }
Note:
See TracChangeset
for help on using the changeset viewer.