summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2019-03-28 14:09:38 +0100
committerSander Vrijders <[email protected]>2019-03-28 14:52:59 +0100
commit34b82a4d68022d462d49dd1f0401e81b84319f47 (patch)
tree88cc4be7f3f92abe29b60ef01b5ac1068a3a8550
parentd6bd976b2456104a56f039ee5c5b83e82a5daa77 (diff)
downloadouroboros-34b82a4d68022d462d49dd1f0401e81b84319f47.tar.gz
ouroboros-34b82a4d68022d462d49dd1f0401e81b84319f47.zip
ipcpd: Handle local IPCP case when parsing config
The default case in the configuration parsing prints an erroneous "Unknown IPCP type" message when a local IPCP is bootstrapped. The IPCP_LOCAL type is now handled separately (no action needed). Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
-rw-r--r--src/ipcpd/ipcp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c
index bd0aeee5..25c1b368 100644
--- a/src/ipcpd/ipcp.c
+++ b/src/ipcpd/ipcp.c
@@ -233,6 +233,8 @@ static void * mainloop(void * o)
conf_msg->layer_info->layer_name);
switch(conf_msg->ipcp_type) {
+ case IPCP_LOCAL:
+ break;
case IPCP_NORMAL:
conf.addr_size = conf_msg->addr_size;
conf.eid_size = conf_msg->eid_size;
@@ -260,7 +262,7 @@ static void * mainloop(void * o)
layer_info.dir_hash_algo = HASH_SHA3_256;
break;
default:
- log_err("Unknown IPCP type.");
+ log_err("Unknown IPCP type: %d.", conf_msg->ipcp_type);
}
/* UDP and broadcast use fixed hash algorithm. */