diff options
author | shemminger <shemminger> | 2005-09-07 17:43:00 +0000 |
---|---|---|
committer | shemminger <shemminger> | 2005-09-07 17:43:00 +0000 |
commit | fc57a9df1bee719c86a4f0bc82bafae05bb92fc2 (patch) | |
tree | b8aa10ec741a51a7dd3229293cba00c3ccee97ff /ip/ip.c | |
parent | ce715cd94cd5272ab4bd106c964ebe215a4e1791 (diff) |
Fix ip monitor since it is special and can't reuse
rtnl_open handle.
Diffstat (limited to 'ip/ip.c')
-rw-r--r-- | ip/ip.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -53,6 +53,11 @@ static void usage(void) exit(-1); } +static int do_help(int argc, char **argv) +{ + usage(); +} + static const struct cmd { const char *cmd; int (*func)(int argc, char **argv); @@ -66,6 +71,7 @@ static const struct cmd { { "tunnel", do_iptunnel }, { "monitor", do_ipmonitor }, { "xfrm", do_xfrm }, + { "help", do_help }, { 0 } }; |