This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new cb292d060 nshlib/netcmds:modify the description of setting MTU
cb292d060 is described below
commit cb292d060898a8c574d3823495f2ecdab0c64f65
Author: wangchen <[email protected]>
AuthorDate: Wed May 10 14:58:44 2023 +0800
nshlib/netcmds:modify the description of setting MTU
modify the description of setting MTU
Signed-off-by: wangchen <[email protected]>
---
nshlib/README.md | 2 +-
nshlib/nsh_command.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/nshlib/README.md b/nshlib/README.md
index 8cdb8ca7c..23d06b542 100644
--- a/nshlib/README.md
+++ b/nshlib/README.md
@@ -670,7 +670,7 @@ system image.
Dump data in hexadecimal format from a file or character device.
-- `ifconfig [nic_name [address_family] [mtu <len>] | [[<ip-address>|dhcp]]
[dr|gw|gateway <dr-address>] [netmask <net-mask>|prefixlen <len>] [dns
<dns-address>] [hw <hw-mac>]]`
+- `ifconfig [nic_name [address_family] [[mtu <len>] | [<ip-address>|dhcp]]
[dr|gw|gateway <dr-address>] [netmask <net-mask>|prefixlen <len>] [dns
<dns-address>] [hw <hw-mac>]]`
Show the current configuration of the network, for example:
diff --git a/nshlib/nsh_command.c b/nshlib/nsh_command.c
index fa0abe174..a137f4d2b 100644
--- a/nshlib/nsh_command.c
+++ b/nshlib/nsh_command.c
@@ -255,7 +255,7 @@ static const struct cmdmap_s g_cmdmap[] =
#ifdef CONFIG_NET
# ifndef CONFIG_NSH_DISABLE_IFCONFIG
{ "ifconfig", cmd_ifconfig, 1, 12,
- "[interface [address_family] [<ip-address>|dhcp]] | [mtu <len>]"
+ "[interface [address_family] [mtu <len>] | [<ip-address>|dhcp]]"
"[dr|gw|gateway <dr-address>] [netmask <net-mask>|prefixlen <len>] "
"[dns <dns-address>] [hw <hw-mac>]" },
# endif