// Use the default address. Check the state.\r
//\r
if (IpSb->State == IP4_SERVICE_UNSTARTED) {\r
- Status = EFI_NO_MAPPING;\r
- goto ON_ERROR;\r
+ Status = Ip4StartAutoConfig (&IpSb->Ip4Config2Instance);\r
+\r
+ if (EFI_ERROR (Status)) {\r
+ goto ON_ERROR;\r
+ }\r
}\r
\r
IpIf = IpSb->DefaultInterface;\r
//\r
// Only support the continuous net masks\r
//\r
- if ((Len = NetGetMaskLength (Netmask)) == IP4_MASK_NUM) {\r
+ if ((Len = NetGetMaskLength (Netmask)) == (IP4_MASK_MAX + 1)) {\r
return FALSE;\r
}\r
\r