mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 21:41:18 +08:00
NSH addroute and delroute: All expression of the netmask in IPv4 CIDR or IPv6 slash notation. This really reduces the pain of using the commands, especially for IPv6.
This commit is contained in:
@@ -111,7 +111,7 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE) && !defined(CONFIG_NSH_DISABLE_ADDROUTE)
|
||||
{ "addroute", cmd_addroute, 4, 4, "<target> <netmask> <router>" },
|
||||
{ "addroute", cmd_addroute, 3, 4, "<target> [<netmask>] <router>" },
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NET) && defined(CONFIG_NET_ARP) && !defined(CONFIG_NSH_DISABLE_ARP)
|
||||
@@ -165,7 +165,7 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
# endif
|
||||
|
||||
#if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE) && !defined(CONFIG_NSH_DISABLE_DELROUTE)
|
||||
{ "delroute", cmd_delroute, 3, 3, "<target> <netmask>" },
|
||||
{ "delroute", cmd_delroute, 2, 3, "<target> [<netmask>]" },
|
||||
#endif
|
||||
|
||||
#if CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT) && \
|
||||
|
Reference in New Issue
Block a user