diff --git a/include/n2n_define.h b/include/n2n_define.h index cdee5da..451dacb 100644 --- a/include/n2n_define.h +++ b/include/n2n_define.h @@ -121,11 +121,6 @@ enum sn_purge {SN_PURGEABLE = 0, SN_UNPURGEABLE = 1}; #define N2N_EDGE_MGMT_PORT 5644 #define N2N_SN_MGMT_PORT 5645 -enum n2n_mgmt_type { - N2N_MGMT_READ = 0, - N2N_MGMT_WRITE = 1, -}; - #define N2N_MGMT_PASSWORD "n2n" /* default password for management port access (so far, json only) */ diff --git a/src/edge_management.c b/src/edge_management.c index efd90b0..018c8a5 100644 --- a/src/edge_management.c +++ b/src/edge_management.c @@ -19,6 +19,11 @@ #include "n2n.h" #include "edge_utils_win32.h" +enum n2n_mgmt_type { + N2N_MGMT_READ = 0, + N2N_MGMT_WRITE = 1, +}; + /* * Everything needed to reply to a request */ diff --git a/src/sn_management.c b/src/sn_management.c index e4aa7aa..63a2b31 100644 --- a/src/sn_management.c +++ b/src/sn_management.c @@ -26,6 +26,11 @@ int load_allowed_sn_community (n2n_sn_t *sss); /* defined in sn_utils.c */ +enum n2n_mgmt_type { + N2N_MGMT_READ = 0, + N2N_MGMT_WRITE = 1, +}; + #define FLAG_WROK 1 typedef struct mgmt_handler { int flags;