From 809e4d1957daa701a3390b0526b125cc263bfe26 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 26 Mar 2021 20:47:25 +0100 Subject: build: Move connmgr and enrolment to common ground The connection manager and enrolment components of the unicast and broadcast IPCP have a lot in common, as conjectured in the paper. The initial implementation of the broadcast IPCP just duplicated the code. This moves the shared functionality to common ground. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/unicast/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/ipcpd/unicast/main.c') diff --git a/src/ipcpd/unicast/main.c b/src/ipcpd/unicast/main.c index 050b9229..96df1664 100644 --- a/src/ipcpd/unicast/main.c +++ b/src/ipcpd/unicast/main.c @@ -29,6 +29,7 @@ #include "config.h" #define OUROBOROS_PREFIX "unicast-ipcp" +#define THIS_TYPE IPCP_UNICAST #include #include @@ -38,12 +39,12 @@ #include #include +#include "common/connmgr.h" +#include "common/enroll.h" #include "addr_auth.h" #include "ca.h" -#include "connmgr.h" #include "dir.h" #include "dt.h" -#include "enroll.h" #include "fa.h" #include "ipcp.h" @@ -54,8 +55,6 @@ #include #include -#define THIS_TYPE IPCP_UNICAST - struct ipcp ipcpi; static int initialize_components(const struct ipcp_config * conf) -- cgit v1.2.3