]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Add check logic for the gateway validity.
authorZhang Lubo <lubo.zhang@intel.com>
Fri, 6 Jan 2017 09:15:27 +0000 (17:15 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Thu, 19 Jan 2017 03:32:14 +0000 (11:32 +0800)
commit266746561d454d3d35938886e61a02b1ee1abaff
tree95b1f3a4e07785cf99501c75fc850404b5533d90
parenteabc6e59b9a718a44ab292f7e5c447c4c06d21c4
ShellPkg: Add check logic for the gateway validity.

if we set a static IP using command
'ifconfig -s eth0 static 192.168.0.121 255.255.255.0 0.0.0.0'
The system says 'Failed to set address.' but using
'ifconfig -l', the static IP can be assigned successfully.
so we need to check the gateway validity before setting manual
address to keep the ifconfig -s command more consistent.

Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Cc: Santhapur Naveen <naveens@amiindia.co.in>
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: Fu Siyuan <siyuan.fu@intel.com>
ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c
ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.uni