]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Enhance ping to select the interface automatically
authorJiaxin Wu <jiaxin.wu@intel.com>
Tue, 19 Apr 2016 01:49:01 +0000 (09:49 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Fri, 29 Apr 2016 03:32:17 +0000 (11:32 +0800)
commit9ce14ca124dd4ef1ae1f4e7c55840a13f1a6c0b7
tree40de8ac707f308b1636202bbaefd0fc2aa89191a
parent5db1ac89be4a407ead4d78e15ff35b95836db2de
ShellPkg: Enhance ping to select the interface automatically

v2:
* A. Refine the code to make it more readable.
* B. Add hint message for link local address case.

This patch is used to support no source IP specified case
while multiple NICs existed in the platform. The command
will select the first both connected and configured interface
automatically.
Note: Source address is always required when pinging a
link-local address.

Cc: David Van Arnem <dvanarnem@cmlab.biz>
Cc: Bhupesh Sharma <bhupesh.sharma@nxp.com>
Cc: Jaben Carsey <jaben.carsey@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: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.uni