|
@ -184,7 +184,9 @@ static void help() { |
|
|
printf("[-f] "); |
|
|
printf("[-f] "); |
|
|
#endif |
|
|
#endif |
|
|
printf("[-F <federation_name>] "); |
|
|
printf("[-F <federation_name>] "); |
|
|
|
|
|
#if 0 |
|
|
printf("[-m <mac_address>] "); |
|
|
printf("[-m <mac_address>] "); |
|
|
|
|
|
#endif /* #if 0 */ |
|
|
#ifndef WIN32 |
|
|
#ifndef WIN32 |
|
|
printf("[-u <uid> -g <gid>] "); |
|
|
printf("[-u <uid> -g <gid>] "); |
|
|
#endif /* ifndef WIN32 */ |
|
|
#endif /* ifndef WIN32 */ |
|
@ -200,8 +202,10 @@ static void help() { |
|
|
printf("-f | Run in foreground.\n"); |
|
|
printf("-f | Run in foreground.\n"); |
|
|
#endif /* #if defined(N2N_HAVE_DAEMON) */ |
|
|
#endif /* #if defined(N2N_HAVE_DAEMON) */ |
|
|
printf("-F <fed_name> | Name of the supernodes federation (otherwise use '%s' by default)\n",(char *)FEDERATION_NAME); |
|
|
printf("-F <fed_name> | Name of the supernodes federation (otherwise use '%s' by default)\n",(char *)FEDERATION_NAME); |
|
|
|
|
|
#if 0 |
|
|
printf("-m <mac_addr> | Fix MAC address for the supernode (otherwise it may be random)\n" |
|
|
printf("-m <mac_addr> | Fix MAC address for the supernode (otherwise it may be random)\n" |
|
|
" | eg. -m 01:02:03:04:05:06\n"); |
|
|
" | eg. -m 01:02:03:04:05:06\n"); |
|
|
|
|
|
#endif /* #if 0 */ |
|
|
#ifndef WIN32 |
|
|
#ifndef WIN32 |
|
|
printf("-u <UID> | User ID (numeric) to use when privileges are dropped.\n"); |
|
|
printf("-u <UID> | User ID (numeric) to use when privileges are dropped.\n"); |
|
|
printf("-g <GID> | Group ID (numeric) to use when privileges are dropped.\n"); |
|
|
printf("-g <GID> | Group ID (numeric) to use when privileges are dropped.\n"); |
|
@ -352,10 +356,12 @@ static int setOption(int optkey, char *_optarg, n2n_sn_t *sss) { |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#if 0 |
|
|
case 'm': {/* MAC address */ |
|
|
case 'm': {/* MAC address */ |
|
|
str2mac(sss->mac_addr,_optarg); |
|
|
str2mac(sss->mac_addr,_optarg); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
#endif /* #if 0 */ |
|
|
|
|
|
|
|
|
case 'c': /* community file */ |
|
|
case 'c': /* community file */ |
|
|
load_allowed_sn_community(sss, _optarg); |
|
|
load_allowed_sn_community(sss, _optarg); |
|
|