From cb292d060898a8c574d3823495f2ecdab0c64f65 Mon Sep 17 00:00:00 2001 From: wangchen Date: Wed, 10 May 2023 14:58:44 +0800 Subject: [PATCH] nshlib/netcmds:modify the description of setting MTU modify the description of setting MTU Signed-off-by: wangchen --- 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 ] | [[|dhcp]] [dr|gw|gateway ] [netmask |prefixlen ] [dns ] [hw ]]` +- `ifconfig [nic_name [address_family] [[mtu ] | [|dhcp]] [dr|gw|gateway ] [netmask |prefixlen ] [dns ] [hw ]]` 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] [|dhcp]] | [mtu ]" + "[interface [address_family] [mtu ] | [|dhcp]]" "[dr|gw|gateway ] [netmask |prefixlen ] " "[dns ] [hw ]" }, # endif