diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-23 12:49:49 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-23 12:49:49 -0600 |
commit | a750be83fc6d44839905b0f92d0e66295c96119b (patch) | |
tree | d9c0992c52e5484dd9a82b201a38509622863473 /apps/nshlib/nsh_command.c | |
parent | bd98b09f49bd0516ebbd705495e8e0a03bc64b25 (diff) | |
download | px4-nuttx-a750be83fc6d44839905b0f92d0e66295c96119b.tar.gz px4-nuttx-a750be83fc6d44839905b0f92d0e66295c96119b.tar.bz2 px4-nuttx-a750be83fc6d44839905b0f92d0e66295c96119b.zip |
apps/nshlib: Add the ping6 command to support checking IPv6 networks. NSH logic is complete but still missing some network level support
Diffstat (limited to 'apps/nshlib/nsh_command.c')
-rw-r--r-- | apps/nshlib/nsh_command.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/nshlib/nsh_command.c b/apps/nshlib/nsh_command.c index 3950b3379..fa8efa9c5 100644 --- a/apps/nshlib/nsh_command.c +++ b/apps/nshlib/nsh_command.c @@ -1,7 +1,7 @@ /**************************************************************************** * apps/nshlib/nsh_command.c * - * Copyright (C) 2007-2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -323,6 +323,12 @@ static const struct cmdmap_s g_cmdmap[] = # endif #endif +#if defined(CONFIG_NET) && defined(CONFIG_NET_ICMPv6) && defined(CONFIG_NET_ICMPv6_PING) && !defined(CONFIG_DISABLE_SIGNALS) +# ifndef CONFIG_NSH_DISABLE_PING6 + { "ping6", cmd_ping6, 2, 6, "[-c <count>] [-i <interval>] <ip-address>" }, +# endif +#endif + #ifndef CONFIG_NSH_DISABLE_PS { "ps", cmd_ps, 1, 1, NULL }, #endif |