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 <dimitri@ouroboros.rocks>
---
src/ipcpd/ipcp.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c
index bd0aeee..25c1b36 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. */
--
2.21.0