Signed-off-by: lpleahy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12511
6f19259b-4bc3-4df7-8a09-
765794883524
IpAddress[3] = (UINT8)RemoteAddress[3];\r
pHost = gethostbyaddr ( &IpAddress[0], INADDRSZ, AF_INET );\r
if ( NULL == pHost ) {\r
IpAddress[3] = (UINT8)RemoteAddress[3];\r
pHost = gethostbyaddr ( &IpAddress[0], INADDRSZ, AF_INET );\r
if ( NULL == pHost ) {\r
- Print ( L"ERROR - host not found, errno: %d\r\n", errno );\r
+ Print ( L"ERROR - host not found, h_errno: %d\r\n", h_errno );\r
}\r
else {\r
pIpAddress = (UINT8 *)pHost->h_addr_list[ 0 ];\r
}\r
else {\r
pIpAddress = (UINT8 *)pHost->h_addr_list[ 0 ];\r
//\r
pHost = _gethostbydnsname ( Argv[1], AF_INET );\r
if ( NULL == pHost ) {\r
//\r
pHost = _gethostbydnsname ( Argv[1], AF_INET );\r
if ( NULL == pHost ) {\r
- Print ( L"ERROR - host not found, errno: %d\r\n", errno );\r
+ Print ( L"ERROR - host not found, h_errno: %d\r\n", h_errno );\r
}\r
else {\r
pIpAddress = (UINT8 *)pHost->h_addr;\r
}\r
else {\r
pIpAddress = (UINT8 *)pHost->h_addr;\r
//\r
pHost = gethostbyname ( Argv[1]);\r
if ( NULL == pHost ) {\r
//\r
pHost = gethostbyname ( Argv[1]);\r
if ( NULL == pHost ) {\r
- Print ( L"ERROR - host not found, errno: %d\r\n", errno );\r
+ Print ( L"ERROR - host not found, h_errno: %d\r\n", h_errno );\r
}\r
else {\r
pIpAddress = (UINT8 *)pHost->h_addr;\r
}\r
else {\r
pIpAddress = (UINT8 *)pHost->h_addr;\r