47d20b54f9
ShellPkg: Apply uncrustify changes
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Apply uncrustify changes to .c/.h files in the ShellPkg package
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
2021-12-07 17:24:28 +00:00
56ba37463a
ShellPkg: Replace BSD License with BSD+Patent License
...
https://bugzilla.tianocore.org/show_bug.cgi?id=1373
Replace BSD 2-Clause License with BSD+Patent License. This change is
based on the following emails:
https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html
https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html
RFCs with detailed process for the license change:
V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html
V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html
V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
2019-04-09 10:58:25 -07:00
1f48070740
ShellPkg/Ifconfig6: Update error message and add a new line
...
If DAD failed, we print "It failed to set", print the IPv6
address and exit. We need a better error string
and also, after printing the IPv6 address, we need a new line
else the Shell> prompt will overwrite the IPv6 address. Fixed
these issues in this patch.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com >
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com >
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com >
2017-09-12 16:41:08 +08:00
521981ee76
ShellPkg/Ifconfig6: Address ASSERT because of a missing NULL check
...
When we issue 'ifconfig6 -s <interface> auto' system hangs with
an ASSERT in StrLen. in IfConfig6SetInterfaceInfo, for 'auto' case
we added checks to rule out the invalid inputs like 'host', 'gw'
and 'dns'. To parse through this, we do a VarArg = VarArg->Next but
we dont check new VarArg before calling StrCmp. Fix with a check
in this patch.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com >
Reviewed-by: Zhang Lubo <lubo.zhang@intel.com >
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com >
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com >
2017-01-13 09:40:48 +08:00
69f6787b0d
ShellPkg: Assign the correct value to ShellStatus
...
Since the type of ShellStatus is SHELL_STATUS, we should use
SHELL_INVALID_PARAMETER instead of EFI_INVALID_PARAMETER.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com >
Cc: Zhang Lubo <lubo.zhang@intel.com >
Cc: Ye Ting <ting.ye@intel.com >
Cc: Fu Siyuan <siyuan.fu@intel.com >
Cc: Wu Jiaxin <jiaxin.wu@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Ye Ting <ting.ye@intel.com >
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com >
Reviewed-by: Zhang Lubo <lubo.zhang@intel.com >
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com >
2016-12-09 10:10:39 +08:00
445d200762
ShellPkg: Add error prompt message in Ifconfig6 command.
...
v2: update the prompt message more readable.
It should display error prompt message when Ifconfig6 can
not configure correctly.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com >
Cc: Ye Ting <ting.ye@intel.com >
Cc: Fu Siyuan <siyuan.fu@intel.com >
Cc: Wu Jiaxin <jiaxin.wu@intel.com >
Reviewed by : Wu Jiaxin <jiaxin.wu@intel.com >
Reviewed-by: Ye Ting <ting.ye@intel.com >
Reviewed-by: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com >
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com >
2016-12-06 18:37:50 +08:00
a915fea68e
ShellPkg/Ifconfig6: Handle memory allocation failure
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
2016-07-18 11:04:19 +08:00
e2f5c491d8
ShellPkg: Fix issue about Ifconfig6 -r command.
...
Follow the Shell Spec, when the interface name is Specified,
we need to refresh the Ipv6 configuration.
Cc: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com >
Cc: Ye Ting <ting.ye@intel.com >
Cc: Fu Siyuan <siyuan.fu@intel.com >
Cc: Wu Jiaxin <jiaxin.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com >
Reviewed-by: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com >
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-By: Wu Jiaxin <jiaxin.wu@intel.com >
2016-07-15 14:45:55 +08:00
43ca17532b
ShellPkg: Merge Ping6 and Ifconfig6 tools to Shell command.
...
According to the new Shell spec, we add Network2 profile and
merge Ping6 and Ifconfig6 tools to Shell command.
Cc: Carsey Jaben <jaben.carsey@intel.com >
Cc: Wu Jiaxin <jiaxin.wu@intel.com >
Cc: Ye Ting <ting.ye@intel.com >
Cc: Fu Siyuan <siyuan.fu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com >
Reviewed-By: Jaben Carsey <Jaben.carsey@intel.com >
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com >
2016-03-08 15:01:29 +08:00