Changes in uspace/srv/net/inetsrv/inetcfg.c [b8b1adb1:bd88bee] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inetcfg.c
rb8b1adb1 rbd88bee 1 1 /* 2 * Copyright (c) 201 2Jiri Svoboda2 * Copyright (c) 2013 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 162 167 static int inetcfg_link_get(sysarg_t link_id, inet_link_info_t *linfo) 163 168 { … … 180 185 } 181 186 187 static int inetcfg_link_remove(sysarg_t link_id) 188 { 189 return ENOTSUP; 190 } 191 182 192 static int inetcfg_sroute_create(char *name, inet_naddr_t *dest, 183 193 inet_addr_t *router, sysarg_t *sroute_id) … … 483 493 } 484 494 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 485 508 static void inetcfg_link_get_srv(ipc_callid_t callid, ipc_call_t *call) 486 509 { … … 536 559 } 537 560 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 538 574 static void inetcfg_sroute_create_srv(ipc_callid_t iid, 539 575 ipc_call_t *icall) … … 714 750 sysarg_t method = IPC_GET_IMETHOD(call); 715 751 752 log_msg(LOG_DEFAULT, LVL_DEBUG, "method %d", (int)method); 716 753 if (!method) { 717 754 /* The other side has hung up */ … … 742 779 inetcfg_get_sroute_list_srv(callid, &call); 743 780 break; 781 case INETCFG_LINK_ADD: 782 inetcfg_link_add_srv(callid, &call); 783 break; 744 784 case INETCFG_LINK_GET: 745 785 inetcfg_link_get_srv(callid, &call); 786 break; 787 case INETCFG_LINK_REMOVE: 788 inetcfg_link_remove_srv(callid, &call); 746 789 break; 747 790 case INETCFG_SROUTE_CREATE:
Note:
See TracChangeset
for help on using the changeset viewer.