merged edge's subnet parameter into address parameter

This commit is contained in:
Logan007
2020-09-21 13:37:06 +05:45
parent 421968ac4e
commit df869bfd3b
3 changed files with 55 additions and 53 deletions
-1
View File
@@ -257,7 +257,6 @@ typedef struct n2n_tuntap_priv_config {
dec_ip_str_t netmask;
char device_mac[N2N_MACNAMSIZ];
int mtu;
uint8_t got_s;
uint8_t daemon;
#ifndef WIN32
uid_t userid;
+4
View File
@@ -89,6 +89,10 @@
#define N2N_MACNAMSIZ 18 /* AA:BB:CC:DD:EE:FF + NULL*/
#define N2N_IF_MODE_SIZE 16 /* static | dhcp */
#define N2N_EDGE_DEFAULT_DEV_NAME "edge0"
#define N2N_EDGE_DEFAULT_NETMASK "255.255.255.0" /* default netmask for edge ip address... */
#define N2N_EDGE_DEFAULT_CIDR_NM 24 /* ... also in cidr format */
#define N2N_SN_LPORT_DEFAULT 7654
#define N2N_SN_PKTBUF_SIZE 2048