From 9dec2de448f70b53a55d67e282be39acdc743aaa Mon Sep 17 00:00:00 2001 From: frekky Date: Tue, 10 Nov 2015 20:42:31 +0800 Subject: [PATCH] Updated command line arguments help --- src/iodine.c | 5 +++-- src/iodined.c | 12 +++++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/iodine.c b/src/iodine.c index a7b96b3..b057973 100644 --- a/src/iodine.c +++ b/src/iodine.c @@ -71,8 +71,8 @@ print_usage() fprintf(stderr, "Usage: %s [-v] [-h] [-V sec] [-f] [-r] [-u user] [-t chrootdir] [-d device] " "[-w downfrags] [-W upfrags] [-i sec -j sec] [-I sec] [-c 0|1] [-C 0|1] [-s ms] " - "[-P password] [-m maxfragsize] [-M maxlen] [-T type] [-O enc] [-L 0|1] " - "[-z context] [-F pidfile] topdomain [nameserver1 [nameserver2 [nameserverN ...]]]\n", __progname); + "[-P password] [-m maxfragsize] [-M maxlen] [-T type] [-O enc] [-L 0|1] [-R rdomain] " + "[-z context] [-F pidfile] topdomain [nameserver1 [nameserver2 [...]]]\n", __progname); } static void @@ -118,6 +118,7 @@ help() fprintf(stderr, " -t dir to chroot to directory dir\n"); fprintf(stderr, " -d device to set tunnel device name\n"); fprintf(stderr, " -z context, to apply specified SELinux context after initialization\n"); + fprintf(stderr, " -R routing domain (OpenBSD only)\n"); fprintf(stderr, " -F pidfile to write pid to a file\n\n"); fprintf(stderr, "nameserver is the IP/hostname of the relaying nameserver(s).\n"); diff --git a/src/iodined.c b/src/iodined.c index 643d751..4a87d9c 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -154,13 +154,11 @@ static void print_usage() { extern char *__progname; - fprintf(stderr, "Usage: %s [-v] [-h] " - "[-4] [-6] [-c] [-s] [-f] [-D] [-u user] " - "[-t chrootdir] [-d device] [-m mtu] [-z context] " - "[-l ipv4 listen address] [-L ipv6 listen address] " - "[-p port] [-n external ip] [-b dnsport] " - "[-P password] [-F pidfile] [-i max idle time] " - "tunnel_ip[/netmask] topdomain\n", __progname); + fprintf(stderr, "Usage: %s [-v] [-h] [-4] [-6] [-c] [-s] [-f] [-D] " + "[-u user] [-t chrootdir] [-d device] [-m mtu] [-z context] " + "[-l ipv4 listen address] [-L ipv6 listen address] [-p port] " + "[-n external ip] [-b dnsport] [-P password] [-F pidfile] " + "[-i max idle time] tunnel_ip[/netmask] topdomain\n", __progname); } static void