/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/NetUtil/ |
H A D | inet_makeaddr.c | 61 in_addr_t addr; local 65 addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST); 67 addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST); 69 addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST); 71 addr = net | host; 72 ret.s_addr = htonl(addr);
|
H A D | inet_addr.c | 128 inet_aton(const char *cp, struct in_addr *addr) { argument 222 if (addr != NULL) 223 addr->s_addr = htonl(val);
|
/vbox/src/VBox/Devices/Network/lwip/src/include/ipv6/lwip/ |
H A D | ip_addr.h | 40 u32_t addr[4]; member in struct:ip_addr 43 #define IP6_ADDR(ipaddr, a,b,c,d,e,f,g,h) do { (ipaddr)->addr[0] = htonl((u32_t)((a & 0xffff) << 16) | (b & 0xffff)); \ 44 (ipaddr)->addr[1] = htonl(((c & 0xffff) << 16) | (d & 0xffff)); \ 45 (ipaddr)->addr[2] = htonl(((e & 0xffff) << 16) | (f & 0xffff)); \ 46 (ipaddr)->addr[3] = htonl(((g & 0xffff) << 16) | (h & 0xffff)); } while(0) 52 u8_t ip_addr_isany(struct ip_addr *addr); 56 void ip_addr_debug_print(struct ip_addr *addr);
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/ |
H A D | getai.c | 47 PRNetAddr addr; local 57 while ((iter = PR_EnumerateAddrInfo(iter, ai, 0, &addr)) != NULL) { 59 PR_NetAddrToString(&addr, buf, sizeof buf);
|
H A D | str2addr.c | 56 PRNetAddr addr; local 62 if (PR_StringToNetAddr(addrStr, &addr) == PR_FAILURE) { 66 if (addr.inet.family != PR_AF_INET) { 67 fprintf(stderr, "addr.inet.family should be %d but is %d\n", 68 PR_AF_INET, addr.inet.family); 71 bytes = (unsigned char *) &addr.inet.ip; 74 fprintf(stderr, "byte %d of IPv4 addr should be %d but is %d\n",
|
H A D | addrstr.c | 79 PRNetAddr addr; local 85 rv = PR_StringToNetAddr(in, &addr); 87 printf("cannot convert %s to addr: %d\n", in, rv); 91 rv = PR_NetAddrToString(&addr, buf, sizeof(buf)); 103 if (PR_StringToNetAddr(in, &addr) == PR_SUCCESS) { 104 printf("converted bad addr %s\n", in);
|
H A D | libfilename.c | 54 static PRStatus RunTest(const char *name, PRFuncPtr addr) argument 59 pathname = PR_GetLibraryFilePathname(name, addr); 86 PRFuncPtr addr; local 101 addr = (PRFuncPtr)PR_GetTCPMethods()->close; 102 if (RunTest(name, addr) == PR_FAILURE) { 117 addr = PR_FindFunctionSymbol(lib, "My_GetValue"); 118 if (RunTest(name, addr) == PR_FAILURE) {
|
H A D | prpollml.c | 94 PRNetAddr addr; local 96 memset(&addr, 0, sizeof(addr)); 97 addr.inet.family = PR_AF_INET; 98 addr.inet.port = PR_htons(0); 99 addr.inet.ip = PR_htonl(PR_INADDR_ANY); 106 if (PR_Bind(sock, &addr) == PR_FAILURE) {
|
H A D | selct_er.c | 87 PRNetAddr addr; local 130 addr.inet.family = AF_INET; 131 addr.inet.ip = PR_htonl(INADDR_ANY); 132 addr.inet.port = PR_htons(0); 133 if (PR_Bind(listenSock1, &addr) == PR_FAILURE) { 138 if (PR_GetSockName(listenSock1, &addr) == PR_FAILURE) { 143 listenPort1 = PR_ntohs(addr.inet.port); 155 addr.inet.family = AF_INET; 156 addr.inet.ip = PR_htonl(INADDR_ANY); 157 addr [all...] |
H A D | selct_to.c | 86 PRNetAddr addr; local 129 addr.inet.family = PR_AF_INET; 130 addr.inet.ip = PR_htonl(PR_INADDR_ANY); 131 addr.inet.port = PR_htons(0); 132 if (PR_Bind(listenSock1, &addr) == PR_FAILURE) { 137 if (PR_GetSockName(listenSock1, &addr) == PR_FAILURE) { 142 listenPort1 = PR_ntohs(addr.inet.port); 154 addr.inet.family = PR_AF_INET; 155 addr.inet.ip = PR_htonl(PR_INADDR_ANY); 156 addr [all...] |
H A D | zerolen.c | 79 PRNetAddr addr; local 89 if (PR_InitializeNetAddr(PR_IpAddrLoopback, port, &addr) == PR_FAILURE) { 93 if (PR_Connect(sock, &addr, PR_INTERVAL_NO_TIMEOUT) == PR_FAILURE) { 126 PRNetAddr addr; local 137 if (PR_InitializeNetAddr(PR_IpAddrAny, 0, &addr) == PR_FAILURE) { 141 if (PR_Bind(listenSock, &addr) == PR_FAILURE) { 146 if (PR_GetSockName(listenSock, &addr) == PR_FAILURE) { 159 ClientThread, (void *) PR_ntohs(PR_NetAddrInetPort(&addr)), 200 ClientThread, (void *) PR_ntohs(PR_NetAddrInetPort(&addr)), 239 ClientThread, (void *) PR_ntohs(PR_NetAddrInetPort(&addr)), [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/VfrCompile/Pccts/h/ |
H A D | ATokPtr.h | 47 ANTLRTokenPtr(ANTLRAbstractToken *addr=NULL){ptr_ = addr; ref();} argument 62 void operator = (ANTLRAbstractToken *addr); 67 int operator == (const ANTLRAbstractToken *addr) const // MR11 68 { return this->ptr_ == addr; } 69 int operator != (const ANTLRAbstractToken *addr) const // MR11 70 { return this->ptr_ != addr; }
|
H A D | ATokPtrImpl.h | 81 void ANTLRTokenPtr::operator = (ANTLRAbstractToken *addr) argument 83 if (addr != NULL) { 84 addr->ref(); 87 ptr_ = addr;
|
/vbox/src/VBox/Devices/Network/lwip/src/core/ipv4/ |
H A D | ip_addr.c | 46 * @param addr address to be checked 52 u8_t ip_addr_isbroadcast(struct ip_addr *addr, struct netif *netif) argument 56 addr2test = addr->addr; 67 else if (addr2test == netif->ip_addr.addr) 70 else if (ip_addr_netcmp(addr, &(netif->ip_addr), &(netif->netmask)) 72 && ((addr2test & ~netif->netmask.addr) == 73 (IP_ADDR_BROADCAST_VALUE & ~netif->netmask.addr)))
|
/vbox/src/VBox/Devices/PC/BIOS/ |
H A D | parallel.c | 48 uint16_t addr,timeout; local 53 addr = read_word(0x0040, (regs.u.r16.dx << 1) + 8); 54 if ((regs.u.r8.ah < 3) && (regs.u.r16.dx < 3) && (addr > 0)) { 57 outb(addr, regs.u.r8.al); 58 val8 = inb(addr+2); 59 outb(addr+2, val8 | 0x01); // send strobe 60 outb(addr+2, val8 & ~0x01); 61 while (((inb(addr+1) & 0x40) == 0x40) && (timeout)) { 66 val8 = inb(addr+2); 67 outb(addr [all...] |
H A D | serial.c | 48 uint16_t addr, timer, val16; local 53 addr = read_word(0x0040, (regs.u.r16.dx << 1)); 55 if ((regs.u.r16.dx < 4) && (addr > 0)) { 58 outb(addr+3, inb(addr+3) | 0x80); 60 outb(addr, 0x17); 61 outb(addr+1, 0x04); 64 outb(addr, val16 & 0xFF); 65 outb(addr+1, val16 >> 8); 67 outb(addr [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/lib/msgc/src/ |
H A D | win16gc.c | 58 void *addr; local 64 addr = malloc((size_t)*sizep); 65 return addr;
|
H A D | os2gc.c | 59 void *addr; local 66 addr = malloc((size_t)*sizep); 67 return addr;
|
H A D | unixgc.c | 82 void *addr; local 93 addr = mmap(lastaddr, size, PROT_READ|PROT_WRITE|PROT_EXEC, 96 if (addr == (void*)-1) { 100 lastaddr = ((char*)addr + size); 108 return addr; 119 void* addr; 123 addr = mmap(base + oldSize, allocSize, PROT_READ|PROT_WRITE|PROT_EXEC, 125 if (addr == (void*)-1) { 128 if (addr != (void*) (base + oldSize)) {
|
H A D | win32gc.c | 64 void *addr; local 69 addr = VirtualAlloc( (void *)GC_VMBASE, GC_VMLIMIT, MEM_RESERVE, PAGE_READWRITE ); 75 if (addr == NULL) { 76 addr = VirtualAlloc( NULL, GC_VMLIMIT, MEM_RESERVE, PAGE_READWRITE ); 78 baseaddr = lastaddr = addr; 79 if (addr == NULL) { 89 addr = VirtualAlloc( lastaddr, size, MEM_COMMIT, PAGE_READWRITE ); 90 if (addr == NULL) { 94 lastaddr = ((char*)addr + size); 99 return addr; 103 void* addr; local [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/ |
H A D | w16fmem.c | 72 PRStatus _MD_MemUnmap(void *addr, PRUint32 len) argument
|
/vbox/src/VBox/Devices/Network/lwip/src/core/ipv6/ |
H A D | ip6_addr.c | 41 return((addr1->addr[0] & mask->addr[0]) == (addr2->addr[0] & mask->addr[0]) && 42 (addr1->addr[1] & mask->addr[1]) == (addr2->addr[1] & mask->addr[1]) && 43 (addr1->addr[2] & mask->addr[ 68 ip_addr_isany(struct ip_addr *addr) argument 77 ip_addr_debug_print(struct ip_addr *addr) argument [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/arch/i386/interface/syslinux/ |
H A D | comboot_resolv.c | 13 struct in_addr addr; member in struct:comboot_resolver 28 comboot_resolver->addr = sin->sin_addr; 48 comboot_resolver.addr.s_addr = 0; 56 if ( ! comboot_resolver.addr.s_addr ) 59 *address = comboot_resolver.addr;
|
/vbox/src/VBox/NetworkServices/NAT/ |
H A D | RTWinSocketPair.cpp | 65 struct sockaddr addr; member in union:__anon16538 95 rc = bind(listener, &sa[0].addr, cb); 102 rc = getsockname(listener, &sa[0].addr, &cb); 120 rc = connect(socket_vector[0], &sa[0].addr, cb); 138 int rc = bind(socket_vector[0], &sa[0].addr, cb); 150 rc = bind(socket_vector[1], &sa[1].addr, cb); 171 rc = getsockname(socket_vector[0], &sa[0].addr, &cb); 178 rc = getsockname(socket_vector[1], &sa[1].addr, &cb); 185 rc = connect(socket_vector[0], &sa[1].addr, cb); 192 rc = connect(socket_vector[1], &sa[0].addr, c [all...] |
/vbox/src/VBox/Runtime/common/misc/ |
H A D | cidr.cpp | 43 uint8_t addr[4]; local 58 *(uint32_t *)addr = 0; 82 rc = RTStrToUInt8Ex(psz, &pszNext, 10, &addr[cDelimiter]); 102 u32Network = RT_MAKE_U32_FROM_U8(addr[3], addr[2], addr[1], addr[0]); 105 if ( addr[0] == 0 106 && ( *(uint32_t *)addr != 0
|