Lines Matching defs:Addr
194 RTNETADDRU Addr;
888 * @param Addr The address, network endian.
890 DECLINLINE(bool) intnetR0IPv4AddrIsBroadcast(RTNETADDRIPV4 Addr)
893 return Addr.u == UINT32_MAX;
900 * @param Addr The address, network endian.
902 DECLINLINE(bool) intnetR0IPv4AddrIsGood(RTNETADDRIPV4 Addr)
905 if ( Addr.u == UINT32_MAX /* 255.255.255.255 - broadcast. */
906 || Addr.au8[0] == 0) /* Current network, can be used as source address. */
910 if (RT_UNLIKELY( Addr.au8[0] == 127 /* Loopback */
911 || (Addr.au8[0] & 0xf0) == 224 /* Multicast */
2419 RTNETADDRU Addr;
2420 Addr.IPv6 = pIpHdr->ip6_src;
2422 if ( intnetR0IPv6AddrIsGood(Addr.IPv6) && (pIpHdr->ip6_hlim == 0xff)
2423 && intnetR0IfAddrCacheLookupLikely(&pIf->aAddrCache[kIntNetAddrType_IPv6], &Addr, sizeof(Addr.IPv6)) < 0)
2425 intnetR0IfAddrCacheAddIt(pIf, &pIf->aAddrCache[kIntNetAddrType_IPv6], &Addr, "if/ipv6");
2461 RTNETADDRU Addr;
2462 Addr.IPv4 = pIpHdr->ip_src;
2463 if ( intnetR0IPv4AddrIsGood(Addr.IPv4)
2464 && intnetR0IfAddrCacheLookupLikely(&pIf->aAddrCache[kIntNetAddrType_IPv4], &Addr, sizeof(Addr.IPv4)) < 0)
2471 intnetR0IfAddrCacheAddIt(pIf, &pIf->aAddrCache[kIntNetAddrType_IPv4], &Addr, "if/ipv4");
3550 RTNETADDRU Addr;
3556 if (RT_UNLIKELY(!intnetR0SgReadPart(pSG, sizeof(RTNETETHERHDR) + RT_OFFSETOF(RTNETIPV4, ip_dst), sizeof(Addr.IPv4), &Addr)))
3562 cbAddr = sizeof(Addr.IPv4);
3563 Log6(("intnetshareduni: IPv4 %d.%d.%d.%d\n", Addr.au8[0], Addr.au8[1], Addr.au8[2], Addr.au8[3]));
3567 if (RT_UNLIKELY(!intnetR0SgReadPart(pSG, sizeof(RTNETETHERHDR) + RT_OFFSETOF(RTNETIPV6, ip6_dst), sizeof(Addr.IPv6), &Addr)))
3573 cbAddr = sizeof(Addr.IPv6);
3579 if (RT_UNLIKELY(!intnetR0SgReadPart(pSG, sizeof(RTNETETHERHDR) + RT_OFFSETOF(RTNETIPX, ipx_dstnet), sizeof(Addr.IPX), &Addr)))
3585 cbAddr = sizeof(Addr.IPX);
3612 enmAddrType, &Addr, cbAddr,