aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2015-05-15 10:25:07 +0200
committerBjørn Mork <bjorn@mork.no>2015-05-15 10:25:07 +0200
commit35294332b2e75151b4b614719ee6522e1afd8748 (patch)
treefde51b865f9a08ebd3ef87bc382dec5bb165f4c9 /shell
parent02013228914a1d17e8df15d4e2b7950469395a5c (diff)
ripe-atlas-fw: imported version 45504550
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c13
1 files changed, 13 insertions, 0 deletions
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)
{