Lines Matching defs:Dhcp4
164 This function initialize the DHCP4 message instance.
166 This function will pad each item of dhcp4 message packet.
168 @param Seed Pointer to the message instance of the DHCP4 packet.
184 Seed->Length = sizeof (Seed->Dhcp4);
185 Header = &Seed->Dhcp4.Header;
192 Seed->Dhcp4.Magik = DHCP4_MAGIC;
193 Seed->Dhcp4.Option[0] = DHCP4_TAG_EOP;
220 @param Dhcp4 The DHCP4 protocol.
232 IN EFI_DHCP4_PROTOCOL *Dhcp4,
251 Status = Dhcp4->Parse (Dhcp4, Packet, &OptionCount, OptionList);
261 Status = Dhcp4->Parse (Dhcp4, Packet, &OptionCount, OptionList);
423 EFI_DHCP4_PROTOCOL *Dhcp4;
443 Dhcp4 = NULL;
523 // Create a DHCP4 child instance and get the protocol.
538 (VOID **) &Dhcp4,
633 Status = Dhcp4->Build (Dhcp4, &SeedPacket, 0, NULL, 2, ParaList, &Token.Packet);
635 Token.Packet->Dhcp4.Header.Xid = HTONL(NET_RANDOM (NetRandomInitSeed ()));
637 Token.Packet->Dhcp4.Header.Reserved = HTONS ((UINT16)0x8000);
640 CopyMem (&(Token.Packet->Dhcp4.Header.ClientAddr), &(InterfaceInfo->StationAddress), sizeof (EFI_IPv4_ADDRESS));
642 CopyMem (&(Token.Packet->Dhcp4.Header.ClientAddr), &(Instance->Dns4CfgData.StationIp), sizeof (EFI_IPv4_ADDRESS));
645 CopyMem (Token.Packet->Dhcp4.Header.ClientHwAddr, &(InterfaceInfo->HwAddress), InterfaceInfo->HwAddressSize);
647 Token.Packet->Dhcp4.Header.HwAddrLen = (UINT8)(InterfaceInfo->HwAddressSize);
652 Status = Dhcp4->TransmitReceive (Dhcp4, &Token);
669 Status = ParseDhcp4Ack (Dhcp4, &Token.ResponseList[Index], &DnsServerInfor);
708 if (Dhcp4 != NULL) {
709 Dhcp4->Stop (Dhcp4);
710 Dhcp4->Configure (Dhcp4, NULL);