diff options
Diffstat (limited to 'src/lib/ipcp.c')
-rw-r--r-- | src/lib/ipcp.c | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/src/lib/ipcp.c b/src/lib/ipcp.c index b0e593e4..3fd31f37 100644 --- a/src/lib/ipcp.c +++ b/src/lib/ipcp.c @@ -193,71 +193,6 @@ int ipcp_destroy(pid_t api) return 0; } -int ipcp_reg(pid_t api, - char ** dif_names, - size_t len) -{ - ipcp_msg_t msg = IPCP_MSG__INIT; - ipcp_msg_t * recv_msg = NULL; - int ret = -1; - - if (dif_names == NULL || - len == 0 || - dif_names[0] == NULL) - return -EINVAL; - - msg.code = IPCP_MSG_CODE__IPCP_REG; - msg.dif_names = dif_names; - msg.len = len; - - recv_msg = send_recv_ipcp_msg(api, &msg); - if (recv_msg == NULL) - return -1; - - if (recv_msg->has_result == false) { - ipcp_msg__free_unpacked(recv_msg, NULL); - return -1; - } - - ret = recv_msg->result; - ipcp_msg__free_unpacked(recv_msg, NULL); - - return ret; -} - -int ipcp_unreg(pid_t api, - char ** dif_names, - size_t len) -{ - ipcp_msg_t msg = IPCP_MSG__INIT; - ipcp_msg_t * recv_msg = NULL; - int ret = -1; - - if (dif_names == NULL || - len == 0 || - dif_names[0] == NULL) - return -EINVAL; - - msg.code = IPCP_MSG_CODE__IPCP_UNREG; - msg.dif_names = dif_names; - msg.len = len; - - recv_msg = send_recv_ipcp_msg(api, &msg); - if (recv_msg == NULL) - return -1; - - if (recv_msg->has_result == false) { - ipcp_msg__free_unpacked(recv_msg, NULL); - return -1; - } - - ret = recv_msg->result; - ipcp_msg__free_unpacked(recv_msg, NULL); - - return ret; -} - - int ipcp_bootstrap(pid_t api, dif_config_msg_t * conf) { |