diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2012-01-17 17:04:00 +0400 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2012-03-25 17:06:52 +0100 |
commit | 8f3607f84eb5d21d4732a51b39775b7edf8796c2 (patch) | |
tree | 3acdc79efb673d2797ac12abf28308815213f9fe | |
parent | 446d73b7ae544df3af68b4e85ddcd06c2d3589bf (diff) |
babeld: add handling of "-z" cmdline arg
-rw-r--r-- | babeld/babel_main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/babeld/babel_main.c b/babeld/babel_main.c index fd1d94f4..2ae8b917 100644 --- a/babeld/babel_main.c +++ b/babeld/babel_main.c @@ -110,6 +110,7 @@ struct option longopts[] = { "daemon", no_argument, NULL, 'd'}, { "config_file", required_argument, NULL, 'f'}, { "pid_file", required_argument, NULL, 'i'}, + { "socket", required_argument, NULL, 'z'}, { "help", no_argument, NULL, 'h'}, { "vty_addr", required_argument, NULL, 'A'}, { "vty_port", required_argument, NULL, 'P'}, @@ -166,6 +167,7 @@ Daemon which manages Babel routing protocol.\n\n\ -d, --daemon Runs in daemon mode\n\ -f, --config_file Set configuration file name\n\ -i, --pid_file Set process identifier file name\n\ +-z, --socket Set path of zebra socket\n\ -A, --vty_addr Set vty's bind address\n\ -P, --vty_port Set vty's port number\n\ -u, --user User to run as\n\ @@ -204,7 +206,7 @@ babel_init(int argc, char **argv) /* get options */ while(1) { - opt = getopt_long(argc, argv, "df:i:hA:P:u:g:v", longopts, 0); + opt = getopt_long(argc, argv, "df:i:z:hA:P:u:g:v", longopts, 0); if(opt < 0) break; @@ -220,6 +222,9 @@ babel_init(int argc, char **argv) case 'i': pidfile = optarg; break; + case 'z': + zclient_serv_path_set (optarg); + break; case 'A': babel_vty_addr = optarg; break; |