Lines Matching defs:Dhcp4
19 // This is a map from the interested DHCP4 option tags' index to the tag value.
38 Parse a certain dhcp4 option by OptTag in Buffer, and return with start pointer.
408 Seed->Length = sizeof (Seed->Dhcp4);
409 Header = &Seed->Dhcp4.Header;
416 Seed->Dhcp4.Magik = PXEBC_DHCP4_MAGIC;
417 Seed->Dhcp4.Option[0] = PXEBC_DHCP4_TAG_EOP;
436 CopyMem (&Dst->Dhcp4, &Src->Dhcp4, Src->Length);
479 Offer->Dhcp4.Option,
494 (UINT8 *) Offer->Dhcp4.Header.BootFileName,
495 Dhcp4.Header.BootFileName),
505 (UINT8 *) Offer->Dhcp4.Header.ServerName,
506 sizeof (Offer->Dhcp4.Header.ServerName),
517 if (Offer->Dhcp4.Header.YourAddr.Addr[0] == 0) {
553 } else if (Offer->Dhcp4.Header.BootFileName[0] != 0) {
559 (&Offer->Dhcp4.Header.BootFileName[0] -
632 PxeBcCacheDhcp4Packet (&Private->DhcpAck.Dhcp4.Packet.Ack, Ack);
638 PxeBcParseDhcp4Packet (&Private->DhcpAck.Dhcp4);
639 CopyMem (&Mode->DhcpAck.Dhcpv4, &Ack->Dhcp4, Ack->Length);
665 Offer = &Private->OfferBuffer[OfferIndex].Dhcp4.Packet.Offer;
670 PxeBcCacheDhcp4Packet (&Private->ProxyOffer.Dhcp4.Packet.Offer, Offer);
671 PxeBcParseDhcp4Packet (&Private->ProxyOffer.Dhcp4);
676 CopyMem (&Mode->ProxyOffer.Dhcpv4, &Offer->Dhcp4, Offer->Length);
704 ASSERT (Private->OfferBuffer[Index].Dhcp4.OfferType == PxeOfferTypeDhcpBinl ||
705 Private->OfferBuffer[Index].Dhcp4.OfferType == PxeOfferTypeProxyBinl);
707 Offer = &Private->OfferBuffer[Index].Dhcp4.Packet.Offer;
712 if (Offer->Dhcp4.Header.ServerAddr.Addr[0] == 0) {
715 Private->OfferBuffer[Index].Dhcp4.OptList[PXEBC_DHCP4_TAG_INDEX_SERVER_ID]->Data,
721 &Offer->Dhcp4.Header.ServerAddr,
727 Cache4 = &Private->ProxyOffer.Dhcp4;
768 CopyMem (&Private->PxeBc.Mode->ProxyOffer.Dhcpv4, &Reply->Dhcp4, Reply->Length);
792 Cache4 = &Private->OfferBuffer[Private->OfferNum].Dhcp4;
928 if (Private->OfferBuffer[OfferIndex].Dhcp4.OptList[PXEBC_DHCP4_TAG_INDEX_BOOTFILE] != NULL) {
939 Private->OfferBuffer[OfferIndex].Dhcp4.OptList[PXEBC_DHCP4_TAG_INDEX_BOOTFILE] != NULL) {
949 Offer = &Private->OfferBuffer[Index].Dhcp4.Packet.Offer;
959 Private->OfferBuffer[Index].Dhcp4.OfferType == PxeOfferTypeDhcpOnly &&
960 Private->OfferBuffer[Index].Dhcp4.OptList[PXEBC_DHCP4_TAG_INDEX_BOOTFILE] == NULL) {
1006 Cache4 = &Private->OfferBuffer[SelectIndex].Dhcp4;
1060 Offer = &Private->OfferBuffer[Index].Dhcp4.Packet.Offer;
1061 OfferType = Private->OfferBuffer[Index].Dhcp4.OfferType;
1107 Ack = &Private->DhcpAck.Dhcp4.Packet.Ack;
1178 Packet->Dhcp4.Option,
1197 (EFI_PXE_BASE_CODE_PACKET *) &Packet->Dhcp4
1213 CopyMem (&Mode->DhcpDiscover.Dhcpv4, &Packet->Dhcp4, Packet->Length);
1220 if (EFI_ERROR (NetLibGetSystemGuid ((EFI_GUID *) Packet->Dhcp4.Header.ClientHwAddr))) {
1224 ZeroMem (Packet->Dhcp4.Header.ClientHwAddr, sizeof (EFI_GUID));
1226 Packet->Dhcp4.Header.HwAddrLen = (UINT8) sizeof (EFI_GUID);
1251 *NewPacket = &Private->OfferBuffer[Private->SelectIndex - 1].Dhcp4.Packet.Offer;
1303 EFI_DHCP4_PROTOCOL *Dhcp4;
1321 Dhcp4 = Private->Dhcp4;
1375 Status = Dhcp4->Build (
1376 Dhcp4,
1396 if (EFI_ERROR (NetLibGetSystemGuid ((EFI_GUID *) Token.Packet->Dhcp4.Header.ClientHwAddr))) {
1400 ZeroMem (Token.Packet->Dhcp4.Header.ClientHwAddr, sizeof (EFI_GUID));
1402 Token.Packet->Dhcp4.Header.HwAddrLen = (UINT8) sizeof (EFI_GUID);
1409 Token.Packet->Dhcp4.Header.Xid = HTONL (Xid);
1410 Token.Packet->Dhcp4.Header.Reserved = HTONS ((UINT16) ((IsBCast) ? 0x8000 : 0x0));
1411 CopyMem (&Token.Packet->Dhcp4.Header.ClientAddr, &Private->StationIp, sizeof (EFI_IPv4_ADDRESS));
1437 Token.Packet->Dhcp4.Header.Seconds = (UINT16) (PXEBC_BOOT_REQUEST_TIMEOUT * (TryIndex - 1));
1439 Status = Dhcp4->TransmitReceive (Dhcp4, &Token);
1467 EFI_IP4_EQUAL (&Response->Dhcp4.Header.ServerAddr, &SrvList[SrvIndex].IpAddr)) {
1489 PxeBcCacheDhcp4Packet (&Private->PxeReply.Dhcp4.Packet.Ack, Response);
1490 CopyMem (&Mode->PxeDiscover, &Token.Packet->Dhcp4, Token.Packet->Length);
1492 PxeBcCacheDhcp4Packet (&Private->ProxyOffer.Dhcp4.Packet.Offer, Response);
1560 @param[in] Dhcp4 Pointer to the EFI_DHCP4_PROTOCOL
1569 IN EFI_DHCP4_PROTOCOL *Dhcp4
1580 ASSERT (Dhcp4 != NULL);
1604 Status = Dhcp4->Configure (Dhcp4, &Config);
1622 Status = Dhcp4->Start (Dhcp4, NULL);
1633 Status = Dhcp4->GetModeData (Dhcp4, &Mode);
1663 Dhcp4->Stop (Dhcp4);
1664 Dhcp4->Configure (Dhcp4, NULL);
1667 Dhcp4->Configure (Dhcp4, &Config);