Home
last modified time | relevance | path

Searched refs:Netmask (Results 1 – 12 of 12) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/
DIp4Route.c32 IN IP4_ADDR Netmask, in Ip4CreateRouteEntry() argument
48 RtEntry->Netmask = Netmask; in Ip4CreateRouteEntry()
313 IN IP4_ADDR Netmask, in Ip4AddRoute() argument
325 Head = &(RtTable->RouteArea[NetGetMaskLength (Netmask)]); in Ip4AddRoute()
333 if (IP4_NET_EQUAL (RtEntry->Dest, Dest, Netmask) && (RtEntry->NextHop == Gateway)) { in Ip4AddRoute()
341 RtEntry = Ip4CreateRouteEntry (Dest, Netmask, Gateway); in Ip4AddRoute()
375 IN IP4_ADDR Netmask, in Ip4DelRoute() argument
384 Head = &(RtTable->RouteArea[NetGetMaskLength (Netmask)]); in Ip4DelRoute()
389 if (IP4_NET_EQUAL (RtEntry->Dest, Dest, Netmask) && (RtEntry->NextHop == Gateway)) { in Ip4DelRoute()
477 if (IP4_NET_EQUAL (RtEntry->Dest, Dst, RtEntry->Netmask)) { in Ip4FindRouteEntry()
[all …]
DIp4Route.h38 IP4_ADDR Netmask; member
133 IN IP4_ADDR Netmask,
154 IN IP4_ADDR Netmask,
DIp4Impl.c647 IP4_ADDR Netmask; in Ip4ConfigProtocol() local
686 CopyMem (&Netmask, &Config->SubnetMask, sizeof (IP4_ADDR)); in Ip4ConfigProtocol()
689 Netmask = NTOHL (Netmask); in Ip4ConfigProtocol()
697 IpIf = Ip4FindStationAddress (IpSb, Ip, Netmask); in Ip4ConfigProtocol()
709 Status = Ip4SetAddress (IpIf, Ip, Netmask); in Ip4ConfigProtocol()
723 Ip4AddRoute (IpInstance->RouteTable, Ip, Netmask, IP4_ALLZERO_ADDRESS); in Ip4ConfigProtocol()
902 IN IP4_ADDR Netmask in Ip4StationAddressValid() argument
912 if (Netmask == IP4_ALLZERO_ADDRESS) { in Ip4StationAddressValid()
919 if ((Len = NetGetMaskLength (Netmask)) == IP4_MASK_NUM) { in Ip4StationAddressValid()
933 if ((Ip == (Ip & Netmask)) || (Ip == (Ip | ~Netmask))) { in Ip4StationAddressValid()
[all …]
DIp4Common.c201 IN IP4_ADDR Netmask in Ip4FindStationAddress() argument
210 if (IpIf->Configured && (IpIf->Ip == Ip) && (IpIf->SubnetMask == Netmask)) { in Ip4FindStationAddress()
DIp4Common.h165 IN IP4_ADDR Netmask
DIp4If.c565 IP4_ADDR Netmask; in Ip4SetAddress() local
585 Netmask = gIp4AllMasks[MIN (Len, Type << 3)]; in Ip4SetAddress()
586 Interface->NetBrdcast = (IpAddr | ~Netmask); in Ip4SetAddress()
DIp4Config2Impl.c424 EFI_IP4 (Table[Count].SubnetAddress) = HTONL (RtEntry->Dest & RtEntry->Netmask); in Ip4Config2BuildDefaultRouteTable()
425 EFI_IP4 (Table[Count].SubnetMask) = HTONL (RtEntry->Netmask); in Ip4Config2BuildDefaultRouteTable()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Mtftp4Dxe/
DMtftp4Impl.c191 IP4_ADDR Netmask; in Mtftp4OverrideValid() local
205 CopyMem (&Netmask, &Config->SubnetMask, sizeof (IP4_ADDR)); in Mtftp4OverrideValid()
208 Netmask = NTOHL (Netmask); in Mtftp4OverrideValid()
211 if (!NetIp4IsUnicast (Gateway, Netmask) || !IP4_NET_EQUAL (Gateway, Ip, Netmask)) { in Mtftp4OverrideValid()
634 IP4_ADDR Netmask; in EfiMtftp4Configure() local
661 CopyMem (&Netmask, &ConfigData->SubnetMask, sizeof (IP4_ADDR)); in EfiMtftp4Configure()
666 Netmask = NTOHL (Netmask); in EfiMtftp4Configure()
675 ((!IP4_IS_VALID_NETMASK (Netmask) || !NetIp4IsUnicast (Ip, Netmask)))) { in EfiMtftp4Configure()
681 (!IP4_NET_EQUAL (Gateway, Ip, Netmask) || !NetIp4IsUnicast (Gateway, Netmask))) { in EfiMtftp4Configure()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Dhcp4Dxe/
DDhcp4Impl.h99 IP4_ADDR Netmask; member
DDhcp4Io.c353 Ip = HTONL (DhcpSb->Netmask); in DhcpConfigLeaseIoPort()
401 DhcpSb->Netmask = DhcpSb->Para->NetMask; in DhcpLeaseAcquired()
405 if (DhcpSb->Netmask == 0) { in DhcpLeaseAcquired()
408 DhcpSb->Netmask = gIp4AllMasks[Class << 3]; in DhcpLeaseAcquired()
454 DhcpSb->Netmask = 0; in DhcpCleanLease()
DDhcp4Impl.c390 Ip = HTONL (DhcpSb->Netmask); in EfiDhcp4GetModeData()
/device/linaro/bootloader/edk2/NetworkPkg/DnsDxe/
DDnsProtocol.c174 IP4_ADDR Netmask; in Dns4Configure() local
223 CopyMem (&Netmask, &DnsConfigData->SubnetMask, sizeof (IP4_ADDR)); in Dns4Configure()
226 Netmask = NTOHL (Netmask); in Dns4Configure()
229 ((!IP4_IS_VALID_NETMASK (Netmask) || !NetIp4IsUnicast (Ip, Netmask)))) { in Dns4Configure()