/vbox/src/VBox/Devices/Network/slirp/ |
H A D | slirp_dns.h | 19 int slirpInitializeDnsSettings(PNATState pData); 20 int slirpReleaseDnsSettings(PNATState pData);
|
H A D | slirp_state.h | 192 # define NSOCK_INC() do {pData->nsock++;} while (0) 193 # define NSOCK_DEC() do {pData->nsock--;} while (0) 194 # define NSOCK_INC_EX(ex) do {ex->pData->nsock++;} while (0) 195 # define NSOCK_DEC_EX(ex) do {ex->pData->nsock--;} while (0) 215 # define VBOX_SOCKET_EVENT (pData->phEvents[VBOX_SOCKET_EVENT_INDEX]) 349 #define tcp_rcvspace pData->tcp_rcvspace 352 #define tcp_sndspace pData->tcp_sndspace 358 #define bootp_filename pData->bootp_filename 360 #define if_mtu pData->if_mtu 361 #define if_mru pData 510 slirp_zone_pack(PNATState pData) argument 514 slirp_zone_jumbop(PNATState pData) argument 518 slirp_zone_jumbo9(PNATState pData) argument 522 slirp_zone_jumbo16(PNATState pData) argument 526 slirp_zone_ext_refcnt(PNATState pData) argument 530 slirp_zone_mbuf(PNATState pData) argument 534 slirp_zone_clust(PNATState pData) argument [all...] |
H A D | ctl.h | 27 #define CTL_CHECK(x, ctl) ( ((RT_N2H_U32((x)) & ~pData->netmask) == (ctl)) \ 28 && (((x) & RT_H2N_U32(pData->netmask)) == pData->special_addr.s_addr))
|
H A D | tftp.h | 37 int slirpTftpInput(PNATState pData, struct mbuf *m); 38 int slirpTftpInit(PNATState pData); 39 void slirpTftpTerm(PNATState pData);
|
H A D | libslirp.h | 49 void slirp_register_statistics(PNATState pData, PPDMDRVINS pDrvIns); 50 void slirp_deregister_statistics(PNATState pData, PPDMDRVINS pDrvIns); 56 void slirp_select_fill(PNATState pData, int *pndfs); 58 void slirp_select_poll(PNATState pData, int fTimeout); 60 void slirp_select_fill(PNATState pData, int *pnfds, struct pollfd *polls); 61 void slirp_select_poll(PNATState pData, struct pollfd *polls, int ndfs); 64 void slirp_input(PNATState pData, struct mbuf *m, size_t cbBuf); 65 void slirp_set_ethaddr_and_activate_port_forwarding(PNATState pData, const uint8_t *ethaddr, uint32_t GuestIP); 73 void slirp_post_sent(PNATState pData, void *pvArg); 75 int slirp_add_redirect(PNATState pData, in [all...] |
H A D | ext.h | 19 # define zone_mbuf slirp_zone_mbuf(pData) 20 # define zone_clust slirp_zone_clust(pData) 21 # define zone_pack slirp_zone_pack(pData) 22 # define zone_jumbop slirp_zone_jumbop(pData) 23 # define zone_jumbo9 slirp_zone_jumbo9(pData) 24 # define zone_jumbo16 slirp_zone_jumbo16(pData) 25 # define zone_ext_refcnt slirp_zone_ext_refcnt(pData) 42 # define zone_mbuf pData->zone_mbuf 43 # define zone_clust pData->zone_clust 44 # define zone_pack pData [all...] |
H A D | slirp.c | 145 if (pData->icmp_socket.s != -1) \ 285 static int slirpVerifyAndFreeSocket(PNATState pData, struct socket *pSocket) argument 287 AssertPtrReturn(pData, 0); 293 sofree(pData, pSocket); 305 PNATState pData; local 309 pData = RTMemAllocZ(RT_ALIGN_Z(sizeof(NATState), sizeof(uint64_t))); 310 *ppData = pData; 311 if (!pData) 313 pData->fPassDomain = !fUseHostResolver ? fPassDomain : false; 314 pData 429 slirp_register_statistics(PNATState pData, PPDMDRVINS pDrvIns) argument 448 slirp_deregister_statistics(PNATState pData, PPDMDRVINS pDrvIns) argument 465 slirp_link_up(PNATState pData) argument 489 slirp_link_down(PNATState pData) argument 529 slirp_term(PNATState pData) argument 595 updtime(PNATState pData) argument 617 slirp_select_fill(PNATState pData, int *pnfds, struct pollfd *polls) argument [all...] |
H A D | slirp_dns.c | 33 static int get_dns_addr_domain(PNATState pData, argument 50 ret = pData->pfGetAdaptersAddresses(AF_INET, 0, NULL /* reserved */, pAdapterAddr, &size); 68 ret = pData->pfGetAdaptersAddresses(AF_INET, 0, NULL /* reserved */, pAdapterAddr, &size); 104 pDns->de_addr.s_addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | CTL_ALIAS); 108 TAILQ_INSERT_HEAD(&pData->pDnsList, pDns, de_list); 122 LIST_FOREACH(pDomain, &pData->pDomainList, dd_list) 144 LIST_INSERT_HEAD(&pData->pDomainList, pDomain, dd_list); 156 static int get_dns_addr_domain(PNATState pData, const char **ppszDomain) argument 191 address->IPv4.u = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | CTL_ALIAS); 192 else if (pData 232 slirpInitializeDnsSettings(PNATState pData) argument 278 slirpReleaseDnsSettings(PNATState pData) argument [all...] |
H A D | main.h | 31 void if_encap(PNATState pData, uint16_t eth_proto, struct mbuf *m, int flags);
|
H A D | ip_icmp.c | 92 static void icmp_cache_clean(PNATState pData, int iEntries); 95 icmp_init(PNATState pData, int iIcmpCacheLimit) argument 97 pData->icmp_socket.so_type = IPPROTO_ICMP; 98 pData->icmp_socket.so_state = SS_ISFCONNECTED; 106 pData->iIcmpCacheLimit = iIcmpCacheLimit; 108 pData->icmp_socket.s = socket(PF_INET, SOCK_RAW, IPPROTO_ICMP); 110 pData->icmp_socket.s = socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); 112 if (pData->icmp_socket.s == -1) 121 pData->icmp_socket.s = getrawsock(AF_INET); 122 if (pData 146 icmp_finit(PNATState pData) argument 161 icmp_find_original_mbuf(PNATState pData, struct ip *ip) argument 308 icmp_cache_clean(PNATState pData, int iEntries) argument 340 icmp_attach(PNATState pData, struct mbuf *m) argument 361 icmp_input(PNATState pData, struct mbuf *m, int hlen) argument 550 icmp_error(PNATState pData, struct mbuf *msrc, u_char type, u_char code, int minsize, const char *message) argument 686 icmp_reflect(PNATState pData, struct mbuf *m) argument [all...] |
H A D | bootp.c | 58 #define bootp_clients ((BOOTPClient *)pData->pbootp_clients) 63 static void bootp_reply(PNATState pData, struct mbuf *m0, int offReply, uint16_t flags); 87 static BOOTPClient *bc_alloc_client(PNATState pData) argument 109 static BOOTPClient *get_new_addr(PNATState pData, struct in_addr *paddr) argument 113 bc = bc_alloc_client(pData); 117 paddr->s_addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | (bc->number + START_ADDR)); 123 static int release_addr(PNATState pData, struct in_addr *paddr) argument 185 static BOOTPClient *find_addr(PNATState pData, struct in_addr *paddr, const uint8_t *macaddr) argument 199 paddr->s_addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | (i + START_ADDR)); 208 static struct mbuf *dhcp_create_msg(PNATState pData, struc argument 243 dhcp_do_ack_offer(PNATState pData, struct mbuf *m, BOOTPClient *bc, int fDhcpRequest) argument 352 dhcp_send_nack(PNATState pData, struct bootp_t *bp, BOOTPClient *bc, struct mbuf *m) argument 360 dhcp_send_ack(PNATState pData, struct bootp_t *bp, BOOTPClient *bc, struct mbuf *m, int fDhcpRequest) argument 369 dhcp_send_offer(PNATState pData, struct bootp_t *bp, BOOTPClient *bc, struct mbuf *m) argument 400 dhcp_decode_request(PNATState pData, struct bootp_t *bp, struct mbuf *m) argument 567 dhcp_decode_discover(PNATState pData, struct bootp_t *bp, int fDhcpDiscover, struct mbuf *m) argument 610 dhcp_decode_release(PNATState pData, struct bootp_t *bp) argument 683 dhcp_decode(PNATState pData, struct bootp_t *bp, const uint8_t *buf, int size) argument 809 bootp_reply(PNATState pData, struct mbuf *m, int offReply, uint16_t flags) argument 844 bootp_input(PNATState pData, struct mbuf *m) argument 852 bootp_cache_lookup_ip_by_ether(PNATState pData,const uint8_t* ether, uint32_t *pip) argument 873 bootp_cache_lookup_ether_by_ip(PNATState pData, uint32_t ip, uint8_t *ether) argument 894 bootp_dhcp_init(PNATState pData) argument 903 bootp_dhcp_fini(PNATState pData) argument [all...] |
H A D | ip_icmpwin.c | 41 PNATState pData; member in struct:pong 60 static struct mbuf *icmpwin_get_mbuf(PNATState pData, size_t reqsize); 77 icmpwin_init(PNATState pData) argument 96 TAILQ_INIT(&pData->pongs_expected); 97 TAILQ_INIT(&pData->pongs_received); 99 pData->icmp_socket.sh = IcmpCreateFile(); 100 pData->phEvents[VBOX_ICMP_EVENT_INDEX] = CreateEvent(NULL, FALSE, FALSE, NULL); 107 icmpwin_finit(PNATState pData) argument 109 IcmpCloseHandle(pData->icmp_socket.sh); 111 while (!TAILQ_EMPTY(&pData 130 icmpwin_ping(PNATState pData, struct mbuf *m, int hlen) argument 275 PNATState pData = pong->pData; local 311 icmpwin_process(PNATState pData) argument 340 PNATState pData; local 469 PNATState pData = pong->pData; local 515 icmpwin_get_mbuf(PNATState pData, size_t reqsize) argument [all...] |
H A D | tftp.c | 132 DECLINLINE(int) tftpSecurityFilenameCheck(PNATState pData, PCTFTPSESSION pcTftpSession) argument 231 DECLINLINE(void) tftpSessionUpdate(PNATState pData, PTFTPSESSION pTftpSession) argument 336 static int tftpAllocateSession(PNATState pData, PCTFTPIPHDR pcTftpIpHeader, PPTFTPSESSION ppTftpSession) argument 341 AssertPtrReturn(pData, VERR_INVALID_PARAMETER); 347 pTftpSession = &((PTFTPSESSION)pData->pvTftpSessions)[idxSession]; 367 tftpSessionUpdate(pData, pTftpSession); 372 static int tftpSessionFind(PNATState pData, PCTFTPIPHDR pcTftpIpHeader, PPTFTPSESSION ppTftpSessions) argument 376 AssertPtrReturn(pData, VERR_INVALID_PARAMETER); 382 pTftpSession = &((PTFTPSESSION)pData->pvTftpSessions)[idxTftpSession]; 400 DECLINLINE(int) pftpSessionOpenFile(PNATState pData, PTFTPSESSIO argument 426 tftpSessionEvaluateOptions(PNATState pData, PTFTPSESSION pTftpSession) argument 461 tftpSend(PNATState pData, PTFTPSESSION pTftpSession, struct mbuf *pMBuf, PCTFTPIPHDR pcTftpIpHeaderRecv) argument 484 tftpReadDataBlock(PNATState pData, PTFTPSESSION pcTftpSession, uint8_t *pu8Data, int *pcbReadData) argument 537 tftpAddOptionToOACK(PNATState pData, struct mbuf *pMBuf, const char *pszOptName, uint64_t u64OptValue) argument 561 tftpSendOACK(PNATState pData, PTFTPSESSION pTftpSession, PCTFTPIPHDR pcTftpIpHeaderRecv) argument 603 tftpSendError(PNATState pData, PTFTPSESSION pTftpSession, uint16_t errorcode, const char *msg, PCTFTPIPHDR pcTftpIpHeaderRecv) argument 639 tftpSendData(PNATState pData, PTFTPSESSION pTftpSession, uint16_t u16Block, PCTFTPIPHDR pcTftpIpHeaderRecv) argument 693 tftpProcessRRQ(PNATState pData, PCTFTPIPHDR pTftpIpHeader, int pktlen) argument 748 tftpProcessACK(PNATState pData, PTFTPIPHDR pTftpIpHeader) argument 763 slirpTftpInit(PNATState pData) argument 771 slirpTftpTerm(PNATState pData) argument 776 slirpTftpInput(PNATState pData, struct mbuf *pMbuf) argument [all...] |
H A D | sbuf.c | 73 sbreserve(PNATState pData, struct sbuf *sb, int size) argument 75 NOREF(pData); 109 sbappend(PNATState pData, struct socket *so, struct mbuf *m) argument 114 STAM_PROFILE_START(&pData->StatIOSBAppend_pf, a); 117 STAM_COUNTER_INC(&pData->StatIOSBAppend); 122 STAM_COUNTER_INC(&pData->StatIOSBAppend_zm); 133 sbappendsb(pData, &so->so_rcv, m); 134 m_freem(pData, m); 169 STAM_COUNTER_INC(&pData->StatIOSBAppend_wf); 176 sbappendsb(pData, 204 sbappendsb(PNATState pData, struct sbuf *sb, struct mbuf *m) argument [all...] |
H A D | tcp_timer.c | 59 static struct tcpcb *tcp_timers(PNATState pData, register struct tcpcb *tp, int timer); 64 tcp_fasttimo(PNATState pData) argument 81 TCP_OUTPUT(pData, tp); 93 tcp_slowtimo(PNATState pData) 117 tcp_timers(pData, tp, i); 158 tcp_timers(PNATState pData, register struct tcpcb *tp, int timer) 168 tp = tcp_drop(pData, tp, 0); 185 tp = tcp_close(pData, tp); 194 STAM_COUNTER_INC(&pData->StatTCP_retransmit); 223 tp = tcp_drop(pData, t [all...] |
/vbox/src/VBox/Runtime/common/asn1/ |
H A D | asn1-dump.cpp | 65 * @param pData The dump data structure. 69 static void rtAsn1DumpPrintf(PRTASN1DUMPDATA pData, const char *pszFormat, ...) argument 73 pData->pfnPrintfV(pData->pvUser, pszFormat, va); 81 * @param pData The dump data structure. 84 static void rtAsn1DumpPrintIdent(PRTASN1DUMPDATA pData, uint32_t uDepth) argument 91 rtAsn1DumpPrintf(pData, &s_szSpaces[sizeof(s_szSpaces) - 1 - cch]); 100 * @param pData The dump data structure. 104 static void rtAsn1DumpTime(PRTASN1DUMPDATA pData, PCRTASN1CORE pAsn1Core, const char *pszType) argument 109 rtAsn1DumpPrintf(pData, " 130 rtAsn1DumpString(PRTASN1DUMPDATA pData, PCRTASN1CORE pAsn1Core, const char *pszType, uint32_t uDepth) argument 577 rtAsn1DumpUniversalTypeAndValue(PRTASN1DUMPDATA pData, PCRTASN1CORE pAsn1Core, uint32_t uDepth) argument 750 PRTASN1DUMPDATA pData = (PRTASN1DUMPDATA)pvUser; local [all...] |
/vbox/src/VBox/Additions/common/VBoxGuestLib/ |
H A D | HGCM.cpp | 132 DECLVBGL(int) VbglHGCMConnect (VBGLHGCMHANDLE *pHandle, VBoxGuestHGCMConnectInfo *pData) argument 137 if (!pHandle || !pData) 148 rc = vbglDriverIOCtl (&pHandleData->driver, VBOXGUEST_IOCTL_HGCM_CONNECT, pData, sizeof (*pData)); 150 rc = pData->result; 166 DECLVBGL(int) VbglHGCMDisconnect (VBGLHGCMHANDLE handle, VBoxGuestHGCMDisconnectInfo *pData) argument 170 rc = vbglDriverIOCtl (&handle->driver, VBOXGUEST_IOCTL_HGCM_DISCONNECT, pData, sizeof (*pData)); 179 DECLVBGL(int) VbglHGCMCall (VBGLHGCMHANDLE handle, VBoxGuestHGCMCallInfo *pData, uint32_t cbData) argument 183 VBGL_HGCM_ASSERTMsg(cbData >= sizeof (VBoxGuestHGCMCallInfo) + pData 191 VbglHGCMCallUserData(VBGLHGCMHANDLE handle, VBoxGuestHGCMCallInfo *pData, uint32_t cbData) argument 204 VbglHGCMCallTimed(VBGLHGCMHANDLE handle, VBoxGuestHGCMCallInfoTimed *pData, uint32_t cbData) argument [all...] |
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTR0Thread.cpp | 58 PTSTRTR0THREADDATA pData = (PTSTRTR0THREADDATA)pvUser; local 59 if (RT_LIKELY(pData)) 61 if (pData->uMagic == TSTRTR0THREADDATA_MAGIC) 62 pData->uMagic = ~pData->uMagic; 63 if (pData->cCounter == 127) 64 pData->cCounter = 196;
|
H A D | tstRTSort.cpp | 51 TSTRTSORTAPV *pData = (TSTRTSORTAPV *)pvUser; local 54 RTTESTI_CHECK(VALID_PTR(pData) && pData->cElements <= RT_ELEMENTS(pData->aValues)); 55 RTTESTI_CHECK((uintptr_t)(pu32Element1 - &pData->aValues[0]) < pData->cElements); 56 RTTESTI_CHECK((uintptr_t)(pu32Element2 - &pData->aValues[0]) < pData->cElements);
|
H A D | tstRTR0ThreadPreemption.cpp | 73 PTSTRTR0THREADCTXDATA pData = (PTSTRTR0THREADCTXDATA)pvUser; local 74 AssertPtrReturnVoid(pData); 76 if (pData->u32Magic != TSTRTR0THREADCTXDATA_MAGIC) 78 RTStrPrintf(pData->achResult, sizeof(pData->achResult), "!tstRTR0ThreadCtxHook: Invalid magic."); 86 ASMAtomicWriteBool(&pData->fPreemptingInvoked, true); 89 if (pData->fPreemptingSuccess) 94 RTStrPrintf(pData->achResult, sizeof(pData->achResult), 100 if (pData [all...] |
/vbox/src/VBox/Runtime/common/crypto/ |
H A D | spc-core.cpp | 43 pThis->pData = (PCRTCRSPCPEIMAGEPAGEHASHES)pThis->RawData.Asn1Core.uData.pv; 68 PCRTCRSPCSERIALIZEDOBJECTATTRIBUTES pData = pThis->Data.uValue.pPeImage->T0.File.u.pMoniker->u.pData; local 69 if (pData) 70 for (uint32_t i = 0; i < pData->cItems; i++) 71 if (pData->paItems[i].enmType == enmType) 72 return &pData->paItems[i];
|
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/BsdSocketLib/ |
H A D | sendto.c | 59 CONST UINT8 * pData; local 84 pData = buffer; 90 pData, 103 pData += LengthInBytes;
|
/vbox/src/VBox/Additions/darwin/VBoxClient/ |
H A D | VBoxClientClipboardHostToGuest.cpp | 41 * @param pData Where to store received data. 43 * @param cbMemSize The actual size of memory occupied by *pData. 47 static int vbclClipboardReadHostData(uint32_t u32ClientId, uint32_t fFormat, void **pData, uint32_t *cbDataSize, uint32_t *cbMemSize) argument 51 AssertReturn(pData && cbDataSize && cbMemSize, VERR_INVALID_PARAMETER); 80 *pData = pDataInternal; 90 * @param pData Pointer to memory occupied by host buffer. 91 * @param cbMemSize The actual size of memory occupied by *pData. 93 static void vbclClipboardReleaseHostData(void **pData, uint32_t cbMemSize) argument 95 AssertReturnVoid(pData && cbMemSize > 0); 96 RTMemPageFree(*pData, cbMemSiz 110 vbclClipboardGuestPasteData(PasteboardRef pPasteboard, UInt8 *pData, CFIndex cbDataSize, CFStringRef sFormat, bool fClear) argument 153 vbclClipboardGuestPasteText(PasteboardRef pPasteboard, void *pData, uint32_t cbDataSize) argument 207 vbclClipboardGuestPastePicture(PasteboardRef pPasteboard, void *pData, uint32_t cbDataSize) argument 238 void *pData; local [all...] |
/vbox/src/VBox/Runtime/r0drv/solaris/ |
H A D | memobj-r0drv-solaris.h | 63 PSEGVBOX_DATA pData = kmem_zalloc(sizeof(*pData), KM_SLEEP); local 67 AssertPtr(pData); 83 pData->fPageAccess = pArgs->fPageAccess | PROT_USER; 84 pData->cbPageSize = cbPageSize; 87 pSeg->s_data = pData; 97 pData->fPageAccess | HAT_UNORDERED_OK, HAT_LOAD_LOCK); 126 PSEGVBOX_DATA pData = pSeg->s_data; local 128 AssertRelease(pData); 132 size_t cbPageOffset = pData 151 PSEGVBOX_DATA pData = pSeg->s_data; local 200 PSEGVBOX_DATA pData = pSeg->s_data; local 219 PSEGVBOX_DATA pData = pSeg->s_data; local [all...] |
/vbox/src/libs/xpcom18a4/python/src/ |
H A D | dllmain.cpp | 120 ThreadData *pData = (ThreadData *)PR_GetThreadPrivate(tlsIndex); local 121 if (pData==NULL) { /* First request on this thread */ 126 pData = (ThreadData *)nsMemory::Alloc(sizeof(ThreadData)); 127 if (!pData) 129 memset(pData, 0, sizeof(*pData)); 130 if (NS_FAILED( PR_SetThreadPrivate( tlsIndex, pData ) ) ) { 134 pData->ts = PyThreadState_New(PyXPCOM_InterpreterState); 143 ThreadData *pData = (ThreadData *)PR_GetThreadPrivate(tlsIndex); local 144 NS_ABORT_IF_FALSE(pData, "Hav 152 ThreadData *pData = (ThreadData *)PR_GetThreadPrivate(tlsIndex); local 163 ThreadData *pData = (ThreadData *)PR_GetThreadPrivate(tlsIndex); local 173 ThreadData *pData = (ThreadData *)PR_GetThreadPrivate(tlsIndex); local [all...] |