summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2016-07-12 18:21:36 +0200
committerdimitri staessens <[email protected]>2016-07-12 18:21:36 +0200
commit0027209cccbd5195b6d4ffe88adc8ba1ac3f3fe2 (patch)
tree8f974b624b06a72badb075013db343c7e227eb2d /src/lib
parent1a35c29ba743424df0cb27408cf08f7022a1c5f5 (diff)
parentd96bac100c5fe181383e947c1e62241cbabce6ac (diff)
downloadouroboros-0027209cccbd5195b6d4ffe88adc8ba1ac3f3fe2.tar.gz
ouroboros-0027209cccbd5195b6d4ffe88adc8ba1ac3f3fe2.zip
Merged in sandervrijders/ouroboros/be (pull request #170)
Be
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ipcp.c12
-rw-r--r--src/lib/ipcpd_messages.proto27
2 files changed, 18 insertions, 21 deletions
diff --git a/src/lib/ipcp.c b/src/lib/ipcp.c
index 3fd31f37..373baafd 100644
--- a/src/lib/ipcp.c
+++ b/src/lib/ipcp.c
@@ -221,20 +221,18 @@ int ipcp_bootstrap(pid_t api,
return ret;
}
-int ipcp_enroll(pid_t api,
- char * dif_name,
- char * n_1_dif)
+int ipcp_enroll(pid_t api,
+ char * dif_name)
{
ipcp_msg_t msg = IPCP_MSG__INIT;
ipcp_msg_t * recv_msg = NULL;
int ret = -1;
- if (n_1_dif == NULL || dif_name == NULL)
+ if (dif_name == NULL)
return -EINVAL;
msg.code = IPCP_MSG_CODE__IPCP_ENROLL;
msg.dif_name = dif_name;
- msg.n_1_dif = n_1_dif;
recv_msg = send_recv_ipcp_msg(api, &msg);
if (recv_msg == NULL) {
@@ -252,8 +250,8 @@ int ipcp_enroll(pid_t api,
return ret;
}
-int ipcp_name_reg(pid_t api,
- char * name)
+int ipcp_name_reg(pid_t api,
+ char * name)
{
ipcp_msg_t msg = IPCP_MSG__INIT;
ipcp_msg_t * recv_msg = NULL;
diff --git a/src/lib/ipcpd_messages.proto b/src/lib/ipcpd_messages.proto
index eb764e18..6361c461 100644
--- a/src/lib/ipcpd_messages.proto
+++ b/src/lib/ipcpd_messages.proto
@@ -14,18 +14,17 @@ enum ipcp_msg_code {
message ipcp_msg {
required ipcp_msg_code code = 1;
optional string dif_name = 2;
- optional string n_1_dif = 3;
- repeated string dif_names = 4;
- optional int32 len = 5;
- optional string name = 6;
- optional sint32 port_id = 7;
- optional string dst_name = 8;
- optional string src_ap_name = 9;
- optional string src_ae_name = 10;
- optional sint32 qos_cube = 11;
- optional dif_config_msg conf = 12;
- optional sint32 fd = 13;
- optional sint32 api = 14;
- optional sint32 response = 15;
- optional sint32 result = 16;
+ repeated string dif_names = 3;
+ optional int32 len = 4;
+ optional string name = 5;
+ optional sint32 port_id = 6;
+ optional string dst_name = 7;
+ optional string src_ap_name = 8;
+ optional string src_ae_name = 9;
+ optional sint32 qos_cube = 10;
+ optional dif_config_msg conf = 11;
+ optional sint32 fd = 12;
+ optional sint32 api = 13;
+ optional sint32 response = 14;
+ optional sint32 result = 15;
};