Home | History | Annotate | Download | only in UefiPxeBcDxe

Lines Matching refs:Mode

56   EFI_PXE_BASE_CODE_MODE  *Mode;

65 Mode = Private->PxeBc.Mode;
67 if (Mode->Started) {
72 // Detect whether using IPv6 or not, and set it into mode data.
74 if (UseIpv6 && Mode->Ipv6Available && Mode->Ipv6Supported && Private->Ip6Nic != NULL) {
75 Mode->UsingIpv6 = TRUE;
77 Mode->UsingIpv6 = FALSE;
82 if (Mode->UsingIpv6) {
243 Mode->Started = TRUE;
248 if (Mode->UsingIpv6) {
295 EFI_PXE_BASE_CODE_MODE *Mode;
304 Mode = Private->PxeBc.Mode;
305 Ipv6Supported = Mode->Ipv6Supported;
306 Ipv6Available = Mode->Ipv6Available;
308 if (!Mode->Started) {
312 if (Mode->UsingIpv6) {
375 // Reset the mode data.
377 ZeroMem (Mode, sizeof (EFI_PXE_BASE_CODE_MODE));
378 Mode->Ipv6Available = Ipv6Available;
379 Mode->Ipv6Supported = Ipv6Supported;
380 Mode->AutoArp = TRUE;
381 Mode->TTL = DEFAULT_TTL;
382 Mode->ToS = DEFAULT_ToS;
424 EFI_PXE_BASE_CODE_MODE *Mode;
434 Mode = Private->PxeBc.Mode;
435 Mode->IcmpErrorReceived = FALSE;
441 if (!Mode->Started) {
445 if (Mode
472 if (Mode->UsingIpv6) {
544 EFI_PXE_BASE_CODE_MODE *Mode;
558 Mode = Private->PxeBc.Mode;
559 Mode->IcmpErrorReceived = FALSE;
566 if (!Mode->Started) {
577 if (Mode->UsingIpv6) {
599 if (!Mode->PxeDiscoverValid ||
600 !Mode->PxeReplyReceived ||
601 (!Mode->PxeBisReplyReceived && UseBis)) {
678 ASSERT (!Mode->UsingIpv6);
697 ASSERT (!Mode->UsingIpv6);
716 // Parse the cached PXE reply packet, and store it into mode data if valid.
718 if (Mode->UsingIpv6) {
722 &Mode->PxeReply.Dhcpv6,
726 Mode->PxeReplyReceived = TRUE;
727 Mode->PxeDiscoverValid = TRUE;
733 &Mode->PxeReply.Dhcpv4,
737 Mode->PxeReplyReceived = TRUE;
738 Mode->PxeDiscoverValid = TRUE;
749 if (Mode->UsingIpv6) {
846 EFI_PXE_BASE_CODE_MODE *Mode;
866 Mode = Private->PxeBc.Mode;
868 if (Mode->UsingIpv6) {
878 if (Mode->UsingIpv6) {
911 Mode->TftpErrorReceived = FALSE;
912 Mode->IcmpErrorReceived = FALSE;
992 Mode->IcmpErrorReceived = TRUE;
998 if (Mode->UsingIpv6) {
1069 EFI_PXE_BASE_CODE_MODE *Mode;
1080 Mode = Private->PxeBc.Mode;
1088 if (!Mode->UsingIpv6 && GatewayIp != NULL && !NetIp4IsUnicast (NTOHL (GatewayIp->Addr[0]), EFI_NTOHL(Mode->SubnetMask))) {
1103 if (!Mode->Started) {
1121 if (Mode->UsingIpv6) {
1138 Private->Mode.TTL,
1139 Private->Mode.ToS
1155 if (Mode->UsingIpv6) {
1212 if (Mode->UsingIpv6) {
1275 EFI_PXE_BASE_CODE_MODE *Mode;
1296 Mode = Private->PxeBc.Mode;
1316 if (!Mode->Started) {
1323 if (Mode->UsingIpv6) {
1351 Mode->IcmpErrorReceived = FALSE;
1357 if (Mode->UsingIpv6) {
1361 Mode,
1375 Mode,
1396 Mode->IcmpErrorReceived = TRUE;
1404 if (Mode->UsingIpv6) {
1515 if (Mode->UsingIpv6) {
1568 EFI_PXE_BASE_CODE_MODE *Mode;
1582 Mode = Private->PxeBc.Mode;
1586 if (!Mode->Started) {
1592 if (!Mode->UsingIpv6 &&
1599 if (Mode->UsingIpv6) {
1604 } else if ((EFI_NTOHL(Mode->StationIp) != 0) &&
1605 (EFI_NTOHL(Mode->SubnetMask) != 0) &&
1606 IP4_NET_EQUAL(EFI_NTOHL(Mode->StationIp), EFI_NTOHL(NewFilter->IpList[Index].v4), EFI_NTOHL(Mode->SubnetMask.v4)) &&
1607 NetIp4IsUnicast (EFI_IP4 (NewFilter->IpList[Index].v4), EFI_NTOHL(Mode->SubnetMask)) &&
1621 // Configure UDPv4/UDPv6 as promiscuous mode to receive all packets.
1639 if (Mode->IpFilter.IpCnt != NewFilter->IpCnt) {
1641 } else if (CompareMem (Mode->IpFilter.IpList, NewFilter->IpList, NewFilter->IpCnt * sizeof (EFI_IP_ADDRESS)) != 0 ) {
1647 if (!Mode->UsingIpv6) {
1671 // In not Promiscuous mode, need to join the new multicast group.
1709 // In not Promiscuous mode, need to join the new multicast group.
1728 // Save the new IP filter into mode data.
1730 CopyMem (&Mode->IpFilter, NewFilter, sizeof (Mode->IpFilter));
1741 the specified address, then the ArpCacheEntries and ArpCache fields of the mode data
1770 EFI_PXE_BASE_CODE_MODE *Mode;
1782 Mode = Private->PxeBc.Mode;
1787 if (!Mode->Started) {
1791 if (Mode->UsingIpv6) {
1802 Mode->IcmpErrorReceived = FALSE;
1806 if (!Mode->AutoArp) {
1811 if (!PxeBcCheckArpCache (Mode, &IpAddr->v4, &TempMac)) {
1887 current value of the MakeCallback field of the Mode structure.
1906 EFI_PXE_BASE_CODE_MODE *Mode;
1915 Mode = Private->PxeBc.Mode;
1917 if (!Mode->Started) {
1938 Mode->MakeCallbacks = *NewMakeCallback;
1945 Mode->SendGUID = *NewSendGUID;
1949 Mode->AutoArp = *NewAutoArp;
1953 Mode->TTL = *NewTTL;
1957 Mode->ToS = *NewToS;
1995 EFI_PXE_BASE_CODE_MODE *Mode;
2007 Mode = Private->PxeBc.Mode;
2010 if (!Mode->UsingIpv6 &&
2016 if (!Mode->UsingIpv6 && NewStationIp != NULL) {
2024 if (!Mode->Started) {
2028 if (Mode->UsingIpv6 && NewStationIp != NULL) {
2036 } else if (!Mode->UsingIpv6 && NewStationIp != NULL) {
2050 Mode->RouteTableEntries = 1;
2051 Mode->RouteTable[0].IpAddr.Addr[0] = NewStationIp->Addr[0] & NewSubnetMask->Addr[0];
2052 Mode->RouteTable[0].SubnetMask.Addr[0] = NewSubnetMask->Addr[0];
2053 Mode->RouteTable[0].GwAddr.Addr[0] = 0;
2060 CopyMem (&Mode->StationIp, NewStationIp, sizeof (EFI_IP_ADDRESS));
2064 if (!Mode->UsingIpv6 && NewSubnetMask != NULL) {
2065 CopyMem (&Mode->SubnetMask, NewSubnetMask, sizeof (EFI_IP_ADDRESS));
2126 EFI_PXE_BASE_CODE_MODE *Mode;
2133 Mode = Private->PxeBc.Mode;
2135 if (!Mode->Started) {
2140 Mode->DhcpDiscoverValid = *NewDhcpDiscoverValid;
2144 Mode->DhcpAckReceived = *NewDhcpAckReceived;
2148 Mode->ProxyOfferReceived = *NewProxyOfferReceived;
2152 Mode->PxeDiscoverValid = *NewPxeDiscoverValid;
2156 Mode->PxeReplyReceived = *NewPxeReplyReceived;
2160 Mode->PxeBisReplyReceived = *NewPxeBisReplyReceived;
2164 CopyMem (&Mode->DhcpDiscover, NewDhcpDiscover, sizeof (EFI_PXE_BASE_CODE_PACKET));
2168 CopyMem (&Mode->DhcpAck, NewDhcpAck, sizeof (EFI_PXE_BASE_CODE_PACKET));
2172 CopyMem (&Mode->ProxyOffer, NewProxyOffer, sizeof (EFI_PXE_BASE_CODE_PACKET));
2176 CopyMem (&Mode->PxeDiscover, NewPxeDiscover, sizeof (EFI_PXE_BASE_CODE_PACKET));
2180 CopyMem (&Mode->PxeReply, NewPxeReply, sizeof (EFI_PXE_BASE_CODE_PACKET));
2184 CopyMem (&Mode->PxeBisReply, NewPxeBisReply, sizeof (EFI_PXE_BASE_CODE_PACKET));
2392 if (Status == EFI_ALREADY_STARTED && UsingIpv6 != PxeBc->Mode->UsingIpv6) {
2421 if (!PxeBc->Mode->UsingIpv6) {