mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
keep private enum definition local to the management code
This commit is contained in:
parent
e3899d1b76
commit
3fd1dc5fa8
|
@ -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) */
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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…
Reference in New Issue
Block a user