From 35294332b2e75151b4b614719ee6522e1afd8748 Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Fri, 15 May 2015 10:25:07 +0200 Subject: ripe-atlas-fw: imported version 4550 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjørn Mork --- shell/hush.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'shell') diff --git a/shell/hush.c b/shell/hush.c index 9b0d850..13aceb3 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -770,6 +770,7 @@ static int builtin_epoch(char **argv); static int builtin_condmv(char **argv); static int builtin_dfrm(char **argv); static int builtin_rxtxrpt(char **argv); +static int builtin_rptaddr6(char **argv); static int builtin_true(char **argv); static int builtin_set(char **argv); static int builtin_shift(char **argv); @@ -829,6 +830,7 @@ static const struct built_in_command bltins[] = { BLTIN("condmv" , builtin_condmv, "conditional move"), BLTIN("dfrm" , builtin_dfrm, "cleanup if free space gets too low"), BLTIN("rxtxrpt" , builtin_rxtxrpt, "report RX and TX"), + BLTIN("rptaddr6" , builtin_rptaddr6, "report ipv6 address(es) and route(s)"), BLTIN("echo" , builtin_echo, "Write to stdout"), BLTIN("eval" , builtin_eval, "Construct and run shell command"), BLTIN("exec" , builtin_exec, "Execute command, don't return to shell"), @@ -4680,6 +4682,17 @@ static int builtin_rxtxrpt(char **argv) return rxtxrpt_main(argc, argv); } +int builitin_rptaddr6(int argc, char *argv[]); + +static int builtin_rptaddr6(char **argv) +{ + int argc; + + for (argc= 0; argv[argc] != 0; argc++) + ; + return rptaddr6_main(argc, argv); +} + static int builtin_rchoose(char **argv) { -- cgit v1.2.3