Searched refs:RT_BE2H_U16 (Results 1 - 18 of 18) sorted by relevance

/vbox/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxFsDxe/
H A Dfsw_hfs.h126 return RT_BE2H_U16(x);
/vbox/src/VBox/Runtime/common/checksum/
H A Dipv4.cpp116 if (RT_UNLIKELY(RT_BE2H_U16(pIpHdr->ip_len) > cbPktMax))
141 uint16_t cbPayload = RT_BE2H_U16(pIpHdr->ip_len) - pIpHdr->ip_hl * 4;
403 u32Sum = rtNetIPv4AddDataChecksum(pUdpHdr + 1, RT_BE2H_U16(pUdpHdr->uh_ulen) - sizeof(*pUdpHdr), u32Sum, &fOdd);
426 u32Sum = rtNetIPv4AddDataChecksum(pvData, RT_BE2H_U16(pUdpHdr->uh_ulen) - sizeof(*pUdpHdr), u32Sum, &fOdd);
449 cb = RT_BE2H_U16(pUdpHdr->uh_ulen);
452 if (RT_UNLIKELY(cb > (size_t)(RT_BE2H_U16(pIpHdr->ip_len) - pIpHdr->ip_hl * 4)))
520 cbData = RT_BE2H_U16(pIpHdr->ip_len) - pIpHdr->ip_hl * 4 - pTcpHdr->th_off * 4;
577 cbTcp = RT_BE2H_U16(pIpHdr->ip_len) - pIpHdr->ip_hl * 4;
683 if (RT_UNLIKELY(RT_BE2H_U16(pDhcp->bp_flags) & ~(RTNET_DHCP_FLAGS_NO_BROADCAST)))
/vbox/src/VBox/Devices/Network/testcase/
H A DtstIntNet-1.cpp100 switch (RT_BE2H_U16(pEtherHdr->EtherType))
136 if (RT_BE2H_U16(pUdpHdr->uh_dport) == RTNETIPV4_PORT_BOOTPS)
188 cbFrame, &pEthHdr->SrcMac, &pEthHdr->DstMac, RT_BE2H_U16(pEthHdr->EtherType));
478 cbFrame, &pEthHdr->DstMac, &pEthHdr->SrcMac, RT_BE2H_U16(pEthHdr->EtherType),
484 && RT_BE2H_U16(pEthHdr->EtherType) == 0x0800 /* EtherType == IP */)
489 && RT_BE2H_U16(pUdpHdr->uh_dport) == 68 /* bootp */
490 && RT_BE2H_U16(pUdpHdr->uh_sport) == 67 /* bootps */)
559 cbFrame, &pEthHdr->DstMac, &pEthHdr->SrcMac, RT_BE2H_U16(pEthHdr->EtherType),
/vbox/src/VBox/NetworkServices/NetLib/
H A DVBoxNetUDP.cpp93 cbFrame, &pEthHdr->DstMac, &pEthHdr->SrcMac, RT_BE2H_U16(pEthHdr->EtherType),
151 if (RT_BE2H_U16(pUdpHdr->uh_dport) != uDstPort)
/vbox/src/VBox/HostDrivers/VBoxNetFlt/solaris/
H A DVBoxNetFltBow-solaris.c590 LogRel((DEVICE_NAME ":ICMP D=%.6Rhxs S=%.6Rhxs T=%04x\n", pb, pb + 6, RT_BE2H_U16(*(uint16_t *)(pb + 12))));
596 if ( RT_BE2H_U16(pUdpHdr->uh_sport) == 67
597 && RT_BE2H_U16(pUdpHdr->uh_dport) == 68)
600 RT_BE2H_U16(pUdpHdr->uh_sum), RT_BE2H_U16(RTNetIPv4UDPChecksum(pIpHdr, pUdpHdr, pUdpHdr + 1))));
612 LogRel((DEVICE_NAME ":VLAN Pcp=%u Cfi=%u Id=%u\n", VLAN_PRI(RT_BE2H_U16(pVlanHdr->Data)),
613 VLAN_CFI(RT_BE2H_U16(pVlanHdr->Data)), VLAN_ID(RT_BE2H_U16(pVlanHdr->Data))));
H A DVBoxNetFlt-solaris.c2999 pDlAddr->SAP = RT_BE2H_U16(pEthHdr->EtherType);
3003 pDlAddr->SAP = RT_BE2H_U16(pEthHdr->EtherType);
3477 Log((DEVICE_NAME ":Recv VLAN Pcp=%u Cfi=%u Id=%u\n", VLAN_PRI(RT_BE2H_U16(pVlanHdr->Data)),
3478 VLAN_CFI(RT_BE2H_U16(pVlanHdr->Data)), VLAN_ID(RT_BE2H_U16(pVlanHdr->Data))));
3479 if ( VLAN_PRI(RT_BE2H_U16(pVlanHdr->Data)) > 0
3480 && VLAN_ID(RT_BE2H_U16(pVlanHdr->Data)) == 0)
3702 LogRel((DEVICE_NAME ":ICMP D=%.6Rhxs S=%.6Rhxs T=%04x\n", pb, pb + 6, RT_BE2H_U16(*(uint16_t *)(pb + 12))));
3708 if ( RT_BE2H_U16(pUdpHdr->uh_sport) == 67
3709 && RT_BE2H_U16(pUdpHd
[all...]
/vbox/src/VBox/Devices/Network/
H A DSrvIntNetR0.cpp2352 if ( ( RT_BE2H_U16(pUdpHdr->uh_sport) != RTNETIPV4_PORT_BOOTPS
2353 && RT_BE2H_U16(pUdpHdr->uh_dport) != RTNETIPV4_PORT_BOOTPS)
2354 || ( RT_BE2H_U16(pUdpHdr->uh_dport) != RTNETIPV4_PORT_BOOTPC
2355 && RT_BE2H_U16(pUdpHdr->uh_sport) != RTNETIPV4_PORT_BOOTPC))
2484 if ( ( RT_BE2H_U16(pUdpHdr->uh_dport) == RTNETIPV4_PORT_BOOTPS
2485 || RT_BE2H_U16(pUdpHdr->uh_sport) == RTNETIPV4_PORT_BOOTPS)
2486 && ( RT_BE2H_U16(pUdpHdr->uh_sport) == RTNETIPV4_PORT_BOOTPC
2487 || RT_BE2H_U16(pUdpHdr->uh_dport) == RTNETIPV4_PORT_BOOTPC))
2786 int len = RT_BE2H_U16(pIpHdr->ip6_plen);
3299 if ( RT_BE2H_U16(pUdpHd
[all...]
H A DDevE1000.cpp2326 status.u16Special = RT_BE2H_U16(u16Ptr[7]); /* Extract VLAN tag */
3841 pThis->szPrf, RT_BE2H_U16(VET) | (RT_BE2H_U16(pThis->u16VTagTCI) << 16)));
3843 *((uint32_t*)pSg->aSegs[0].pvSeg + 3) = RT_BE2H_U16(VET) | (RT_BE2H_U16(pThis->u16VTagTCI) << 16);
6327 if (RT_BE2H_U16(u16Ptr[6]) == VET)
6337 E1K_SPEC_VLAN(RT_BE2H_U16(u16Ptr[7])),
6338 E1K_SPEC_CFI(RT_BE2H_U16(u16Ptr[7])),
6340 if (E1K_SPEC_CFI(RT_BE2H_U16(u16Ptr[7])) != !!(RCTL & RCTL_CFI))
6343 pThis->szPrf, E1K_SPEC_CFI(RT_BE2H_U16(u16Pt
[all...]
H A DDevVirtioNet.cpp745 && !ASMBitTest(pThis->aVlanFilter, RT_BE2H_U16(u16Ptr[7]) & 0xFFF))
/vbox/src/VBox/Main/src-all/
H A DQMTranslatorImpl.cpp55 return RT_BE2H_U16(value);
/vbox/src/VBox/Runtime/common/string/
H A Dstrformatrt.cpp168 cch += pfnOutput(pvArgOutput, szHexWord, rtstrFormatIPv6HexWord(szHexWord, RT_BE2H_U16(pIpv6Addr->au16[idx])));
183 cch += pfnOutput(pvArgOutput, szHexWord, rtstrFormatIPv6HexWord(szHexWord, RT_BE2H_U16(pIpv6Addr->au16[idx])));
194 cch += pfnOutput(pvArgOutput, szHexWord, rtstrFormatIPv6HexWord(szHexWord, RT_BE2H_U16(pIpv6Addr->au16[idx])));
/vbox/src/VBox/HostDrivers/VBoxNetFlt/linux/
H A DVBoxNetFlt-linux.c575 u16Type = RT_BE2H_U16(((PCRTNETETHERHDR)pSG->aSegs[0].pv)->EtherType);
585 u16Type = RT_BE2H_U16(*(uint16_t *)((uintptr_t)pSG->aSegs[i].pv + off));
587 u16Type = RT_BE2H_U16( ((uint16_t)( ((uint8_t *)pSG->aSegs[i].pv)[off] ) << 8)
/vbox/include/iprt/
H A Dcdefs.h2060 /** @def RT_BE2H_U16
2063 # define RT_BE2H_U16(u16) (u16) macro
2065 # define RT_BE2H_U16(u16) RT_BSWAP_U16(u16) macro
2119 #define RT_N2H_U16(u16) RT_BE2H_U16(u16)
/vbox/src/VBox/Devices/Storage/
H A DDrvHostDVD.cpp642 if (RT_BE2H_U16(*(uint16_t*)pbBuf) >= 6)
/vbox/src/VBox/Runtime/common/zip/
H A Dxarvfs.cpp1987 pXarHdr->cbHeader = RT_BE2H_U16(pXarHdr->cbHeader);
1988 pXarHdr->uVersion = RT_BE2H_U16(pXarHdr->uVersion);
/vbox/src/VBox/HostDrivers/VBoxNetFlt/darwin/
H A DVBoxNetFlt-darwin.cpp882 Log3(("D=%.6Rhxs S=%.6Rhxs T=%04x IFF\n", pb, pb + 6, RT_BE2H_U16(*(uint16_t *)(pb + 12))));
/vbox/src/VBox/Storage/
H A DQCOW.cpp461 *paTbl = RT_BE2H_U16(*paTbl);
H A DVHD.cpp863 pImage->PCHSGeometry.cCylinders = RT_BE2H_U16(vhdFooter.DiskGeometryCylinder);

Completed in 944 milliseconds