Home
last modified time | relevance | path

Searched refs:SubnetMask (Results 1 – 25 of 99) sorted by relevance

1234

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
DTcp4Main.c161 IP4_ADDR SubnetMask; in Tcp4Configure() local
185 CopyMem (&SubnetMask, &TcpConfigData->AccessPoint.SubnetMask, sizeof (IP4_ADDR)); in Tcp4Configure()
186 …if (!IP4_IS_VALID_NETMASK (NTOHL (SubnetMask)) || !NetIp4IsUnicast (NTOHL (Ip), NTOHL (SubnetMask)… in Tcp4Configure()
265 IN EFI_IPv4_ADDRESS *SubnetMask, in Tcp4Routes() argument
280 RouteInfo.SubnetMask = SubnetMask; in Tcp4Routes()
DTcp4Dispatcher.c53 RouteInfo->SubnetMask, in Tcp4Route()
106 IP4_COPY_ADDRESS (&AccessPoint->SubnetMask, &Tcb->SubnetMask); in Tcp4GetMode()
392 IpCfgData.SubnetMask = CfgData->AccessPoint.SubnetMask; in Tcp4ConfigurePcb()
408 CfgData->AccessPoint.SubnetMask = IpCfgData.SubnetMask; in Tcp4ConfigurePcb()
462 IP4_COPY_ADDRESS (&Tcb->SubnetMask, &CfgData->AccessPoint.SubnetMask); in Tcp4ConfigurePcb()
DTcp4Main.h74 EFI_IPv4_ADDRESS *SubnetMask; member
220 IN EFI_IPv4_ADDRESS *SubnetMask,
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/UefiPxeBcDxe/
DPxeBcSupport.c68 IN EFI_IPv4_ADDRESS *SubnetMask, in PxeBcConfigureUdpWriteInstance() argument
86 CopyMem (&Udp4CfgData.SubnetMask, SubnetMask, sizeof (*SubnetMask)); in PxeBcConfigureUdpWriteInstance()
DPxeBcImpl.c179 (NTOHL (Mode->SubnetMask.Addr[0]) != 0) && in IcmpErrorListenHandlerDpc()
180 …StationIp.Addr[0]), EFI_NTOHL (RxData->Header->SourceAddress), NTOHL (Mode->SubnetMask.Addr[0])) && in IcmpErrorListenHandlerDpc()
181 … !NetIp4IsUnicast (EFI_NTOHL (RxData->Header->SourceAddress), NTOHL (Mode->SubnetMask.Addr[0]))) { in IcmpErrorListenHandlerDpc()
658 CopyMem (&Private->SubnetMask, &Dhcp4Mode.SubnetMask, sizeof (EFI_IPv4_ADDRESS)); in EfiPxeBcDhcp()
662 CopyMem (&Mode->SubnetMask, &Private->SubnetMask, sizeof (EFI_IPv4_ADDRESS)); in EfiPxeBcDhcp()
701 … Mode->RouteTable[0].IpAddr.Addr[0] = Private->StationIp.Addr[0] & Private->SubnetMask.Addr[0]; in EfiPxeBcDhcp()
702 Mode->RouteTable[0].SubnetMask.Addr[0] = Private->SubnetMask.Addr[0]; in EfiPxeBcDhcp()
711 Mode->RouteTable[1].SubnetMask.Addr[0] = 0; in EfiPxeBcDhcp()
719 CopyMem (&Private->Udp4CfgData.SubnetMask, &Private->SubnetMask, sizeof (EFI_IPv4_ADDRESS)); in EfiPxeBcDhcp()
721 CopyMem (&Private->Ip4ConfigData.SubnetMask, &Private->SubnetMask, sizeof (EFI_IPv4_ADDRESS)); in EfiPxeBcDhcp()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Udp4Dxe/
DUdp4Main.c141 IP4_ADDR SubnetMask; in Udp4Configure() local
165 CopyMem (&SubnetMask, &UdpConfigData->SubnetMask, sizeof (IP4_ADDR)); in Udp4Configure()
169 SubnetMask = NTOHL (SubnetMask); in Udp4Configure()
174 (!IP4_IS_VALID_NETMASK (SubnetMask) || in Udp4Configure()
175 !((StationAddress == 0) || NetIp4IsUnicast (StationAddress, SubnetMask)) || in Udp4Configure()
232 IP4_COPY_ADDRESS (&Instance->ConfigData.SubnetMask, &Ip4ConfigData.SubnetMask); in Udp4Configure()
438 IN EFI_IPv4_ADDRESS *SubnetMask, in Udp4Routes() argument
464 return Ip->Routes (Ip, DeleteRoute, SubnetAddress, SubnetMask, GatewayAddress); in Udp4Routes()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/
DIp4Config2Nv.c30 IN EFI_IPv4_ADDRESS *SubnetMask in GetSubnetMaskPrefixLength() argument
39 ReverseMask = SwapBytes32 (*(UINT32 *)&SubnetMask[0]); in GetSubnetMaskPrefixLength()
519 Ip4Config2IpToStr (&Ip4Info->SubnetMask, IfrNvData->SubnetMask); in Ip4Config2ConvertConfigNvDataToIfrNvData()
560 EFI_IP_ADDRESS SubnetMask; in Ip4Config2ConvertIfrNvDataToConfigNvData() local
611 Status = Ip4Config2StrToIp (IfrFormNvData->SubnetMask, &SubnetMask.v4); in Ip4Config2ConvertIfrNvDataToConfigNvData()
612 …if (EFI_ERROR (Status) || ((SubnetMask.Addr[0] != 0) && (GetSubnetMaskPrefixLength (&SubnetMask.v4… in Ip4Config2ConvertIfrNvDataToConfigNvData()
618 …if (EFI_ERROR (Status) || !NetIp4IsUnicast (NTOHL (StationAddress.Addr[0]), NTOHL (SubnetMask.Addr… in Ip4Config2ConvertIfrNvDataToConfigNvData()
624 …Gateway.Addr[0] != 0) && !NetIp4IsUnicast (NTOHL (Gateway.Addr[0]), NTOHL (SubnetMask.Addr[0])))) { in Ip4Config2ConvertIfrNvDataToConfigNvData()
658 CopyMem(&Ip4NvData->ManualAddress->SubnetMask, &SubnetMask.v4, sizeof(EFI_IPv4_ADDRESS)); in Ip4Config2ConvertIfrNvDataToConfigNvData()
1115 EFI_IP_ADDRESS SubnetMask; in Ip4FormCallback() local
[all …]
DIp4Config2Impl.c424 EFI_IP4 (Table[Count].SubnetMask) = HTONL (RtEntry->Netmask); in Ip4Config2BuildDefaultRouteTable()
479 IN IP4_ADDR SubnetMask in Ip4Config2SetDefaultAddr() argument
493 if ((IpIf->Ip == StationAddress) && (IpIf->SubnetMask == SubnetMask)) { in Ip4Config2SetDefaultAddr()
534 Status = Ip4SetAddress (IpIf, StationAddress, SubnetMask); in Ip4Config2SetDefaultAddr()
565 SubnetMask, in Ip4Config2SetDefaultAddr()
572 Subnet = StationAddress & SubnetMask; in Ip4Config2SetDefaultAddr()
577 SubnetMask, in Ip4Config2SetDefaultAddr()
603 IN IP4_ADDR SubnetMask, in Ip4Config2SetDefaultIf() argument
612 Status = Ip4Config2SetDefaultAddr (IpSb, StationAddress, SubnetMask); in Ip4Config2SetDefaultIf()
825 IP4_ADDR SubnetMask; in Ip4Config2OnDhcp4Complete() local
[all …]
DIp4Impl.c189 IN EFI_IPv4_ADDRESS *SubnetMask,
423 Ip = HTONL (IpInstance->Interface->SubnetMask); in EfiIp4GetModeData()
424 CopyMem (&Config->SubnetMask, &Ip, sizeof (EFI_IPv4_ADDRESS)); in EfiIp4GetModeData()
635 CopyMem (&Netmask, &Config->SubnetMask, sizeof (IP4_ADDR)); in Ip4ConfigProtocol()
928 IP4_ADDR SubnetMask; in EfiIp4Configure() local
946 CopyMem (&SubnetMask, &IpConfigData->SubnetMask, sizeof (IP4_ADDR)); in EfiIp4Configure()
949 SubnetMask = NTOHL (SubnetMask); in EfiIp4Configure()
955 AddrOk = Ip4StationAddressValid (IpAddress, SubnetMask); in EfiIp4Configure()
978 !EFI_IP4_EQUAL (&Current->SubnetMask, &IpConfigData->SubnetMask))) { in EfiIp4Configure()
1252 IN EFI_IPv4_ADDRESS *SubnetMask, in EfiIp4Routes() argument
[all …]
DIp4NvData.h45 CHAR16 SubnetMask[IP4_STR_MAX_SIZE]; ///< Subnet address member
DIp4If.h151 IP4_ADDR SubnetMask; member
227 IN IP4_ADDR SubnetMask
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/IScsiDxe/
DIScsiConfig.c379 IScsiIpToStr (&SessionConfigData->SubnetMask, IfrNvData->SubnetMask); in IScsiConvertDeviceConfigDataToIfrNvData()
676 EFI_IP_ADDRESS SubnetMask; in IScsiFormCallback() local
731 ((Private->Current->SessionConfigData.SubnetMask.Addr[0] != 0) && in IScsiFormCallback()
732 … (NTOHL (HostIp.Addr[0]), NTOHL(*(UINT32*)Private->Current->SessionConfigData.SubnetMask.Addr)))) { in IScsiFormCallback()
742 IScsiUnicodeStrToAsciiStr (IfrNvData->SubnetMask, Ip4String); in IScsiFormCallback()
743 Status = IScsiAsciiStrToIp (Ip4String, &SubnetMask.v4); in IScsiFormCallback()
744 …if (EFI_ERROR (Status) || ((SubnetMask.Addr[0] != 0) && (IScsiGetSubnetMaskPrefixLength (&SubnetMa… in IScsiFormCallback()
748 … CopyMem (&Private->Current->SessionConfigData.SubnetMask, &SubnetMask.v4, sizeof (SubnetMask.v4)); in IScsiFormCallback()
758 (Private->Current->SessionConfigData.SubnetMask.Addr[0] != 0) && in IScsiFormCallback()
759 …(NTOHL (Gateway.Addr[0]), NTOHL(*(UINT32*)Private->Current->SessionConfigData.SubnetMask.Addr)))) { in IScsiFormCallback()
[all …]
DIScsiMisc.c81 IN EFI_IPv4_ADDRESS *SubnetMask in IScsiGetSubnetMaskPrefixLength() argument
90 …ReverseMask = (SubnetMask->Addr[0] << 24) | (SubnetMask->Addr[1] << 16) | (SubnetMask->Addr[2] << … in IScsiGetSubnetMaskPrefixLength()
845 &DPathNode->Ipv4.SubnetMask, in IScsiGetTcpConnDevicePath()
846 &Session->ConfigData.NvData.SubnetMask in IScsiGetTcpConnDevicePath()
DIScsiMisc.h33 EFI_IPv4_ADDRESS SubnetMask; member
64 IN EFI_IPv4_ADDRESS *SubnetMask
/device/linaro/bootloader/edk2/MdePkg/Include/Protocol/
DIp4.h51 EFI_IPv4_ADDRESS SubnetMask; member
104 EFI_IPv4_ADDRESS SubnetMask; member
139 EFI_IPv4_ADDRESS SubnetMask; member
446 IN EFI_IPv4_ADDRESS *SubnetMask,
DIp4Config2.h111 EFI_IPv4_ADDRESS SubnetMask; member
157 EFI_IPv4_ADDRESS SubnetMask; member
DUdp4.h94 EFI_IPv4_ADDRESS SubnetMask; member
284 IN EFI_IPv4_ADDRESS *SubnetMask,
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Protocol/Ip4/
DIp4.h42 EFI_IPv4_ADDRESS SubnetMask; member
59 EFI_IPv4_ADDRESS SubnetMask; member
71 EFI_IPv4_ADDRESS SubnetMask; member
196 IN EFI_IPv4_ADDRESS *SubnetMask,
/device/linaro/bootloader/edk2/StdLib/EfiSocketLib/
DIp4.c118 pConfig->SubnetMask.Addr[0] = 0; in EslIp4LocalAddressSet()
119 pConfig->SubnetMask.Addr[1] = 0; in EslIp4LocalAddressSet()
120 pConfig->SubnetMask.Addr[2] = 0; in EslIp4LocalAddressSet()
121 pConfig->SubnetMask.Addr[3] = 0; in EslIp4LocalAddressSet()
124 pConfig->SubnetMask.Addr[0] = 0xff; in EslIp4LocalAddressSet()
125 pConfig->SubnetMask.Addr[1] = ( 128 <= pConfig->StationAddress.Addr[0]) ? 0xff : 0; in EslIp4LocalAddressSet()
126 pConfig->SubnetMask.Addr[2] = ( 192 <= pConfig->StationAddress.Addr[0]) ? 0xff : 0; in EslIp4LocalAddressSet()
127 pConfig->SubnetMask.Addr[3] = ( 224 <= pConfig->StationAddress.Addr[0]) ? 0xff : 0; in EslIp4LocalAddressSet()
800 pIp4->ModeData.ConfigData.SubnetMask.Addr[0], in EslIp4SocketIsConfigured()
801 pIp4->ModeData.ConfigData.SubnetMask.Addr[1], in EslIp4SocketIsConfigured()
[all …]
DUdp4.c127 pConfig->SubnetMask.Addr[0] = 0; in EslUdp4LocalAddressSet()
128 pConfig->SubnetMask.Addr[1] = 0; in EslUdp4LocalAddressSet()
129 pConfig->SubnetMask.Addr[2] = 0; in EslUdp4LocalAddressSet()
130 pConfig->SubnetMask.Addr[3] = 0; in EslUdp4LocalAddressSet()
133 pConfig->SubnetMask.Addr[0] = 0xff; in EslUdp4LocalAddressSet()
134 pConfig->SubnetMask.Addr[1] = ( 128 <= pConfig->StationAddress.Addr[0]) ? 0xff : 0; in EslUdp4LocalAddressSet()
135 pConfig->SubnetMask.Addr[2] = ( 192 <= pConfig->StationAddress.Addr[0]) ? 0xff : 0; in EslUdp4LocalAddressSet()
136 pConfig->SubnetMask.Addr[3] = ( 224 <= pConfig->StationAddress.Addr[0]) ? 0xff : 0; in EslUdp4LocalAddressSet()
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/
DTcpMain.c138 IP4_ADDR SubnetMask; in Tcp4Configure() local
161 CopyMem (&SubnetMask, &TcpConfigData->AccessPoint.SubnetMask, sizeof (IP4_ADDR)); in Tcp4Configure()
162 …if (!IP4_IS_VALID_NETMASK (NTOHL (SubnetMask)) || !NetIp4IsUnicast (NTOHL (Ip), NTOHL (SubnetMask)… in Tcp4Configure()
219 IN EFI_IPv4_ADDRESS *SubnetMask, in Tcp4Routes() argument
234 RouteInfo.SubnetMask = SubnetMask; in Tcp4Routes()
DTcpDispatcher.c51 RouteInfo->SubnetMask, in Tcp4Route()
104 IP4_COPY_ADDRESS (&AccessPoint->SubnetMask, &Tcb->SubnetMask); in Tcp4GetMode()
500 &IpCfgData.Ip4CfgData.SubnetMask, in TcpConfigurePcb()
501 &CfgData->Tcp4CfgData.AccessPoint.SubnetMask in TcpConfigurePcb()
544 &CfgData->Tcp4CfgData.AccessPoint.SubnetMask, in TcpConfigurePcb()
545 &IpCfgData.Ip4CfgData.SubnetMask in TcpConfigurePcb()
613 IP4_COPY_ADDRESS (&Tcb->SubnetMask, &CfgData->Tcp4CfgData.AccessPoint.SubnetMask); in TcpConfigurePcb()
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/
DPxeBcSupport.c34 EFI_IP_ADDRESS *SubnetMask OPTIONAL in PxeBcFlushStationIp()
63 ASSERT (SubnetMask != NULL); in PxeBcFlushStationIp()
65 CopyMem (&Private->Udp4CfgData.SubnetMask, SubnetMask, sizeof (EFI_IPv4_ADDRESS)); in PxeBcFlushStationIp()
67 CopyMem (&Private->Ip4CfgData.SubnetMask, SubnetMask, sizeof (EFI_IPv4_ADDRESS)); in PxeBcFlushStationIp()
261 (NTOHL (Mode->SubnetMask.Addr[0]) != 0) && in PxeBcIcmpErrorDpcHandle()
262 …StationIp.Addr[0]), EFI_NTOHL (RxData->Header->SourceAddress), NTOHL (Mode->SubnetMask.Addr[0])) && in PxeBcIcmpErrorDpcHandle()
263 … !NetIp4IsUnicast (EFI_NTOHL (RxData->Header->SourceAddress), NTOHL (Mode->SubnetMask.Addr[0]))) { in PxeBcIcmpErrorDpcHandle()
505 IN EFI_IPv4_ADDRESS *SubnetMask, in PxeBcConfigUdp4Write() argument
526 CopyMem (&Udp4CfgData.SubnetMask, SubnetMask, sizeof (*SubnetMask)); in PxeBcConfigUdp4Write()
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/
DIScsiConfig.c384 CopyMem (&Ip.v4, &SessionConfigData->SubnetMask, sizeof (EFI_IPv4_ADDRESS)); in IScsiConvertAttemptConfigDataToIfrNvData()
385 IScsiIpToStr (&Ip, FALSE, IfrNvData->SubnetMask); in IScsiConvertAttemptConfigDataToIfrNvData()
467 EFI_IP_ADDRESS SubnetMask; in IScsiConvertIfrNvDataToAttemptConfigData() local
533 CopyMem (&SubnetMask.v4, &Attempt->SessionConfigData.SubnetMask, sizeof (SubnetMask.v4)); in IScsiConvertIfrNvDataToAttemptConfigData()
537 if (SubnetMask.Addr[0] == 0) { in IScsiConvertIfrNvDataToAttemptConfigData()
546 } else if (!IP4_NET_EQUAL (HostIp.Addr[0], Gateway.Addr[0], SubnetMask.Addr[0])) { in IScsiConvertIfrNvDataToAttemptConfigData()
2143 EFI_IP_ADDRESS SubnetMask; in IScsiFormCallback() local
2356 ((Private->Current->SessionConfigData.SubnetMask.Addr[0] != 0) && in IScsiFormCallback()
2357 … (NTOHL (HostIp.Addr[0]), NTOHL(*(UINT32*)Private->Current->SessionConfigData.SubnetMask.Addr)))) { in IScsiFormCallback()
2373 Status = NetLibStrToIp4 (IfrNvData->SubnetMask, &SubnetMask.v4); in IScsiFormCallback()
[all …]
DIScsiMisc.h43 EFI_IPv4_ADDRESS SubnetMask; member
75 IN EFI_IPv4_ADDRESS *SubnetMask

1234