|
@ -140,7 +140,9 @@ static void help() { |
|
|
"-l <supernode host:port>\n" |
|
|
"-l <supernode host:port>\n" |
|
|
" " |
|
|
" " |
|
|
"[-p <local port>] [-M <mtu>] " |
|
|
"[-p <local port>] [-M <mtu>] " |
|
|
|
|
|
#ifndef __APPLE__ |
|
|
"[-D] " |
|
|
"[-D] " |
|
|
|
|
|
#endif |
|
|
"[-r] [-E] [-v] [-i <reg_interval>] [-t <mgmt port>] [-A] [-h]\n\n"); |
|
|
"[-r] [-E] [-v] [-i <reg_interval>] [-t <mgmt port>] [-A] [-h]\n\n"); |
|
|
|
|
|
|
|
|
#if defined(N2N_CAN_NAME_IFACE) |
|
|
#if defined(N2N_CAN_NAME_IFACE) |
|
@ -164,8 +166,10 @@ static void help() { |
|
|
printf("-m <MAC address> | Fix MAC address for the TAP interface (otherwise it may be random)\n" |
|
|
printf("-m <MAC address> | Fix MAC address for the TAP interface (otherwise it may be random)\n" |
|
|
" | eg. -m 01:02:03:04:05:06\n"); |
|
|
" | eg. -m 01:02:03:04:05:06\n"); |
|
|
printf("-M <mtu> | Specify n2n MTU of edge interface (default %d).\n", DEFAULT_MTU); |
|
|
printf("-M <mtu> | Specify n2n MTU of edge interface (default %d).\n", DEFAULT_MTU); |
|
|
|
|
|
#ifndef __APPLE__ |
|
|
printf("-D | Enable PMTU discovery. PMTU discovery can reduce fragmentation but\n" |
|
|
printf("-D | Enable PMTU discovery. PMTU discovery can reduce fragmentation but\n" |
|
|
" | causes connections stall when not properly supported.\n"); |
|
|
" | causes connections stall when not properly supported.\n"); |
|
|
|
|
|
#endif |
|
|
printf("-r | Enable packet forwarding through n2n community.\n"); |
|
|
printf("-r | Enable packet forwarding through n2n community.\n"); |
|
|
#ifdef N2N_HAVE_AES |
|
|
#ifdef N2N_HAVE_AES |
|
|
printf("-A | Use AES CBC for encryption (default=use twofish).\n"); |
|
|
printf("-A | Use AES CBC for encryption (default=use twofish).\n"); |
|
@ -253,11 +257,13 @@ static int setOption(int optkey, char *optargument, n2n_priv_config_t *ec, n2n_e |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifndef __APPLE__ |
|
|
case 'D' : /* enable PMTU discovery */ |
|
|
case 'D' : /* enable PMTU discovery */ |
|
|
{ |
|
|
{ |
|
|
conf->disable_pmtu_discovery = 0; |
|
|
conf->disable_pmtu_discovery = 0; |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
case 'k': /* encrypt key */ |
|
|
case 'k': /* encrypt key */ |
|
|
{ |
|
|
{ |
|
|