Browse Source

keep private enum definition local to the management code

pull/947/head
Hamish Coleman 3 years ago
parent
commit
3fd1dc5fa8
  1. 5
      include/n2n_define.h
  2. 5
      src/edge_management.c
  3. 5
      src/sn_management.c

5
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_EDGE_MGMT_PORT 5644
#define N2N_SN_MGMT_PORT 5645 #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) */ #define N2N_MGMT_PASSWORD "n2n" /* default password for management port access (so far, json only) */

5
src/edge_management.c

@ -19,6 +19,11 @@
#include "n2n.h" #include "n2n.h"
#include "edge_utils_win32.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 * Everything needed to reply to a request
*/ */

5
src/sn_management.c

@ -26,6 +26,11 @@
int load_allowed_sn_community (n2n_sn_t *sss); /* defined in sn_utils.c */ 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 #define FLAG_WROK 1
typedef struct mgmt_handler { typedef struct mgmt_handler {
int flags; int flags;

Loading…
Cancel
Save