Lines Matching defs:Dhcp4
20 // This is a map from the interested DHCP4 option tags' index to the tag value.
34 This function initialize the DHCP4 message instance.
36 This function will pad each item of dhcp4 message packet.
38 @param Seed Pointer to the message instance of the DHCP4 packet.
54 Seed->Length = sizeof (Seed->Dhcp4);
56 Header = &Seed->Dhcp4.Header;
64 Seed->Dhcp4.Magik = PXEBC_DHCP4_MAGIC;
65 Seed->Dhcp4.Option[0] = PXEBC_DHCP4_TAG_EOP;
84 CopyMem (&Dst->Dhcp4, &Src->Dhcp4, Src->Length);
90 Copy the dhcp4 packet to the PxeBc private data and parse the dhcp4 packet.
113 CopyMem (&Mode->ProxyOffer, &Offer->Dhcp4, Offer->Length);
154 Offer->Dhcp4.Option,
169 (UINT8 *) Offer->Dhcp4.Header.BootFileName,
170 sizeof (Offer->Dhcp4.Header.BootFileName),
180 (UINT8 *) Offer->Dhcp4.Header.ServerName,
181 sizeof (Offer->Dhcp4.Header.ServerName),
226 } else if (Offer->Dhcp4.Header.BootFileName[0] != 0) {
231 Options[PXEBC_DHCP4_TAG_INDEX_BOOTFILE] = (EFI_DHCP4_PACKET_OPTION *) (&Offer->Dhcp4.Header.BootFileName[0] -
315 if (EFI_IP4_EQUAL (&Offer->Dhcp4.Header.ServerAddr.Addr, &mZeroIp4Addr)) {
324 &Offer->Dhcp4.Header.ServerAddr,
364 CopyMem (&Private->PxeBc.Mode->ProxyOffer, &Reply->Dhcp4, Reply->Length);
552 CopyMem (&Mode->DhcpAck, &Ack->Dhcp4, Ack->Length);
560 Cache the Dhcp4 packet offer, Parse and validate each option of the packet.
882 Packet->Dhcp4.Option,
898 (EFI_PXE_BASE_CODE_PACKET *) &Packet->Dhcp4
916 DhcpHeader = &Packet->Dhcp4.Header;
934 CopyMem (Mode->DhcpDiscover.Raw, &Packet->Dhcp4, Packet->Length);
1157 @param Reply The dhcp4 packet of Pxe reply
1180 EFI_DHCP4_PROTOCOL *Dhcp4;
1198 Dhcp4 = Private->Dhcp4;
1241 Status = Dhcp4->Build (Dhcp4, &Private->SeedPacket, 0, NULL, OptCount, OptList, &Token.Packet);
1251 DhcpHeader = &Token.Packet->Dhcp4.Header;
1264 Token.Packet->Dhcp4.Header.Xid = HTONL(Xid);
1265 Token.Packet->Dhcp4.Header.Reserved = HTONS((UINT16) ((IsBCast) ? 0x8000 : 0));
1266 CopyMem (&Token.Packet->Dhcp4.Header.ClientAddr, &Private->StationIp, sizeof (EFI_IPv4_ADDRESS));
1291 Token.Packet->Dhcp4.Header.Seconds = (UINT16) (PXEBC_BOOT_REQUEST_TIMEOUT * (TryIndex - 1));
1293 Status = Dhcp4->TransmitReceive (Dhcp4, &Token);
1323 if ((SrvList[SrvIndex].Type == Type) && EFI_IP4_EQUAL (&(Response->Dhcp4.Header.ServerAddr), &(Private->ServerIp))) {
1347 CopyMem (&(Mode->PxeDiscover), &(Token.Packet->Dhcp4), Token.Packet->Length);
1350 CopyMem (Mode->PxeReply.Raw, &Response->Dhcp4, Response->Length);