Changes in uspace/srv/net/inetsrv/inetcfg.c [bd88bee:b8b1adb1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inetcfg.c
rbd88bee rb8b1adb1 1 1 /* 2 * Copyright (c) 201 3Jiri Svoboda2 * Copyright (c) 2012 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 160 160 } 161 161 162 static int inetcfg_link_add(sysarg_t link_id)163 {164 return inet_link_open(link_id);165 }166 167 162 static int inetcfg_link_get(sysarg_t link_id, inet_link_info_t *linfo) 168 163 { … … 185 180 } 186 181 187 static int inetcfg_link_remove(sysarg_t link_id)188 {189 return ENOTSUP;190 }191 192 182 static int inetcfg_sroute_create(char *name, inet_naddr_t *dest, 193 183 inet_addr_t *router, sysarg_t *sroute_id) … … 493 483 } 494 484 495 static void inetcfg_link_add_srv(ipc_callid_t callid, ipc_call_t *call)496 {497 sysarg_t link_id;498 int rc;499 500 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_link_add_srv()");501 502 link_id = IPC_GET_ARG1(*call);503 504 rc = inetcfg_link_add(link_id);505 async_answer_0(callid, rc);506 }507 508 485 static void inetcfg_link_get_srv(ipc_callid_t callid, ipc_call_t *call) 509 486 { … … 559 536 } 560 537 561 static void inetcfg_link_remove_srv(ipc_callid_t callid, ipc_call_t *call)562 {563 sysarg_t link_id;564 int rc;565 566 log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_link_remove_srv()");567 568 link_id = IPC_GET_ARG1(*call);569 570 rc = inetcfg_link_remove(link_id);571 async_answer_0(callid, rc);572 }573 574 538 static void inetcfg_sroute_create_srv(ipc_callid_t iid, 575 539 ipc_call_t *icall) … … 750 714 sysarg_t method = IPC_GET_IMETHOD(call); 751 715 752 log_msg(LOG_DEFAULT, LVL_DEBUG, "method %d", (int)method);753 716 if (!method) { 754 717 /* The other side has hung up */ … … 779 742 inetcfg_get_sroute_list_srv(callid, &call); 780 743 break; 781 case INETCFG_LINK_ADD:782 inetcfg_link_add_srv(callid, &call);783 break;784 744 case INETCFG_LINK_GET: 785 745 inetcfg_link_get_srv(callid, &call); 786 break;787 case INETCFG_LINK_REMOVE:788 inetcfg_link_remove_srv(callid, &call);789 746 break; 790 747 case INETCFG_SROUTE_CREATE:
Note:
See TracChangeset
for help on using the changeset viewer.