Home
last modified time | relevance | path

Searched refs:tempAlloc (Results 1 – 25 of 47) sorted by relevance

12

/dports/net/cjdns/cjdns-cjdns-v21.1/client/
H A DConfigurator.c307 Dict* args = Dict_new(tempAlloc); in tunInterface()
328 Dict* args = Dict_new(tempAlloc); in socketInterface()
558 Dict* d = Dict_new(tempAlloc); in security()
631 Dict* d = Dict_new(tempAlloc); in security()
637 Dict* d = Dict_new(tempAlloc); in security()
647 Dict* d = Dict_new(tempAlloc); in security()
652 Dict* d = Dict_new(tempAlloc); in security()
657 Dict* d = Dict_new(tempAlloc); in security()
670 Dict* d = Dict_new(tempAlloc); in tryPing()
720 .alloc = tempAlloc, in Configurator_config()
[all …]
/dports/net/cjdns/cjdns-cjdns-v21.1/util/platform/netdev/
H A DNetPlatform_linux.c133 struct Allocator* tempAlloc)) in Er_DEFUN() argument
140 Er(checkInterfaceUp(s, &ifRequest, logger, tempAlloc)); in Er_DEFUN()
242 struct Allocator* tempAlloc = Allocator_child(alloc); in Er_DEFUN() local
262 Allocator_free(tempAlloc); in Er_DEFUN()
318 Allocator_free(tempAlloc); in Er_DEFUN()
366 struct Allocator* tempAlloc)) in Er_DEFUN() argument
464 struct Allocator* tempAlloc)) in Er_DEFUN() argument
466 int ifIndex = Er(ifIndexForName(ifName, tempAlloc)); in Er_DEFUN()
468 int sock = Er(mkSocket(tempAlloc)); in Er_DEFUN()
471 Er(addDeleteRoutes(sock, true, oldRi, tempAlloc)); in Er_DEFUN()
[all …]
H A DNetPlatform_darwin.c195 struct Allocator* tempAlloc = Allocator_child(allocator); in Er_DEFUN() local
196 uint8_t* buf = Allocator_malloc(tempAlloc, needed); in Er_DEFUN()
227 Allocator_free(tempAlloc); in Er_DEFUN()
235 struct Allocator* tempAlloc)) in Er_DEFUN() argument
249 Er_raise(tempAlloc, "socket() [%s]", strerror(errno)); in Er_DEFUN()
260 Er_raise(tempAlloc, "ioctl(SIOCSIFADDR) [%s]", strerror(err)); in Er_DEFUN()
338 struct Allocator* tempAlloc)) in Er_DEFUN() argument
381 struct Allocator* tempAlloc)) in Er_DEFUN() argument
391 Er_raise(tempAlloc, "Unrecognized address type %d", addrFam); in Er_DEFUN()
397 Er_raise(tempAlloc, "tunName not recognized"); in Er_DEFUN()
[all …]
H A DNetPlatform_netbsd.c119 struct Allocator* tempAlloc)) in Er_DEFUN() argument
122 addIp6Address(interfaceName, address, prefixLen, logger, tempAlloc); in Er_DEFUN()
124 addIp4Address(interfaceName, address, prefixLen, logger, tempAlloc); in Er_DEFUN()
162 struct Allocator* tempAlloc)) in Er_DEFUN() argument
164 Er_raise(tempAlloc, "NetPlatform_setRoutes is not implemented in this platform."); in Er_DEFUN()
H A DNetPlatform_openbsd.c119 struct Allocator* tempAlloc)) in Er_DEFUN() argument
122 addIp6Address(interfaceName, address, prefixLen, logger, tempAlloc); in Er_DEFUN()
124 addIp4Address(interfaceName, address, prefixLen, logger, tempAlloc); in Er_DEFUN()
161 struct Allocator* tempAlloc)) in Er_DEFUN() argument
163 Er_raise(tempAlloc, "NetPlatform_setRoutes is not implemented in this platform."); in Er_DEFUN()
H A DNetPlatform_win32.c169 struct Allocator* tempAlloc)) in Er_DEFUN() argument
179 ipRow.InterfaceLuid = Er(getLuid(interfaceName, tempAlloc)); in Er_DEFUN()
192 WinEr_check(tempAlloc, CreateUnicastIpAddressEntry(&ipRow)); in Er_DEFUN()
195 Er(setupRoute(interfaceName, address, prefixLen, addrFam, tempAlloc)); in Er_DEFUN()
247 struct Allocator* tempAlloc)) in Er_DEFUN() argument
249 Er_raise(tempAlloc, "NetPlatform_setRoutes is not implemented in this platform."); in Er_DEFUN()
H A DNetPlatform_sunos.c173 struct Allocator* tempAlloc)) in Er_DEFUN() argument
176 addIp6Address(interfaceName, address, prefixLen, logger, tempAlloc); in Er_DEFUN()
178 addIp4Address(interfaceName, address, prefixLen, logger, tempAlloc); in Er_DEFUN()
197 struct Allocator* tempAlloc)) in Er_DEFUN() argument
199 Er_raise(tempAlloc, "NetPlatform_setRoutes is not implemented in this platform."); in Er_DEFUN()
H A DNetPlatform_freebsd.c176 struct Allocator* tempAlloc)) in Er_DEFUN() argument
179 Er(addIp6Address(interfaceName, address, prefixLen, logger, tempAlloc)); in Er_DEFUN()
181 Er(addIp4Address(interfaceName, address, prefixLen, logger, tempAlloc)); in Er_DEFUN()
219 struct Allocator* tempAlloc)) in Er_DEFUN() argument
221 Er_raise(tempAlloc, "NetPlatform_setRoutes is not implemented in this platform."); in Er_DEFUN()
H A DNetDev.c108 struct Allocator* tempAlloc)) in Er_DEFUN() argument
111 struct Allocator* alloc = Allocator_child(tempAlloc); in Er_DEFUN()
119 Er(NetPlatform_setRoutes(ifName, prefixSet, prefixCount, logger, tempAlloc)); in Er_DEFUN()
H A DNetPlatform.h34 struct Allocator* tempAlloc));
45 struct Allocator* tempAlloc));
/dports/net/cjdns/cjdns-cjdns-v21.1/dht/dhtcore/
H A DRouterModule_admin.c81 struct Allocator* tempAlloc = promise->alloc; in pingResponse() local
82 Dict* resp = Dict_new(tempAlloc); in pingResponse()
86 String* versionStr = String_newBinary(NULL, 40, tempAlloc); in pingResponse()
88 Dict_putStringC(resp, "version", versionStr, tempAlloc); in pingResponse()
90 Dict_putStringCC(resp, "version", "unknown", tempAlloc); in pingResponse()
94 Dict_putStringC(resp, "result", result, tempAlloc); in pingResponse()
101 Dict_putIntC(resp, "ms", lag, tempAlloc); in pingResponse()
106 Dict_putStringC(resp, "from", String_new(fromStr, tempAlloc), tempAlloc); in pingResponse()
107 String* addr = Address_toStringKey(from, tempAlloc); in pingResponse()
108 Dict_putStringC(resp, "addr", addr, tempAlloc); in pingResponse()
[all …]
/dports/net/cjdns/cjdns-cjdns-v21.1/tunnel/
H A DRouteGen.c251 struct Allocator* tempAlloc = Allocator_child(rp->alloc); in removeSomething() local
254 struct Prefix4* p4 = sockaddrToPrefix4(toRemove, tempAlloc); in removeSomething()
263 struct Prefix6* p6 = sockaddrToPrefix6(toRemove, tempAlloc); in removeSomething()
274 Allocator_free(tempAlloc); in removeSomething()
494 struct Allocator* tempAlloc = Allocator_child(alloc); in genPrefixes4() local
565 Allocator_free(tempAlloc); in genPrefixes4()
576 struct Allocator* tempAlloc = Allocator_child(alloc); in genPrefixes6() local
649 Allocator_free(tempAlloc); in genPrefixes6()
684 struct Allocator* tempAlloc)) in Er_DEFUN() argument
687 struct Prefix46* p46 = getGeneratedRoutes(rp, tempAlloc); in Er_DEFUN()
[all …]
/dports/net/cjdns/cjdns-cjdns-v21.1/admin/angel/
H A DInterfaceWaiter.c69 struct Allocator* tempAlloc = Allocator_child(alloc); in InterfaceWaiter_waitForData() local
70 ctx.timeout = Timeout_setTimeout(timeout, &ctx, 10000, eventBase, tempAlloc); in InterfaceWaiter_waitForData()
75 Allocator_free(tempAlloc); in InterfaceWaiter_waitForData()
H A DCore.c152 struct Allocator* tempAlloc) in sendResponse() argument
154 Dict* output = Dict_new(tempAlloc); in sendResponse()
155 Dict_putStringC(output, "error", error, tempAlloc); in sendResponse()
456 struct Allocator* tempAlloc = Allocator_child(alloc); in Core_main() local
461 InterfaceWaiter_waitForData(&clientPipe->iface.iface, eventBase, tempAlloc, eh); in Core_main()
463 struct Sockaddr* addr = Sockaddr_clone(Er_assert(AddrIface_popAddr(preConf)), tempAlloc); in Core_main()
464 Dict* config = Except_er(eh, BencMessageReader_read(preConf, tempAlloc)); in Core_main()
519 char* boundAddr = Sockaddr_print(udpAdmin->generic.addr, tempAlloc); in Core_main()
528 struct Message* clientResponse = Message_new(0, 512, tempAlloc); in Core_main()
533 Allocator_free(tempAlloc); in Core_main()
/dports/devel/cpputest/cpputest-4.0/tests/CppUTestExt/
H A DMemoryReporterPluginTest.cpp57 TemporaryDefaultNewAllocator tempAlloc(previousNewAllocator); in report_testgroup_start() local
63 TemporaryDefaultNewAllocator tempAlloc(previousNewAllocator); in report_testgroup_end() local
69 TemporaryDefaultNewAllocator tempAlloc(previousNewAllocator); in report_test_start() local
75 TemporaryDefaultNewAllocator tempAlloc(previousNewAllocator); in report_test_end() local
81 TemporaryDefaultNewAllocator tempAlloc(previousNewAllocator); in report_alloc_memory() local
87 TemporaryDefaultNewAllocator tempAlloc(previousNewAllocator); in report_free_memory() local
/dports/net/cjdns/cjdns-cjdns-v21.1/subnode/
H A DReachabilityAnnouncer.c424 struct Allocator* tempAlloc = Allocator_child(rap->alloc); in addServerStateMsg() local
425 struct ArrayList_OfAnnItems* knownItems = ArrayList_OfAnnItems_new(tempAlloc); in addServerStateMsg()
457 Allocator_free(tempAlloc); in addServerStateMsg()
497 struct Allocator* tempAlloc = Allocator_child(rap->alloc); in ReachabilityAnnouncer_updatePeer() local
502 struct ArrayList_OfBarePeers* snodeState = getSnodeStatePeers(rap, tempAlloc); in ReachabilityAnnouncer_updatePeer()
505 Address_toString(nodeAddr, tempAlloc)->bytes); in ReachabilityAnnouncer_updatePeer()
509 Address_toString(nodeAddr, tempAlloc)->bytes); in ReachabilityAnnouncer_updatePeer()
513 Allocator_free(tempAlloc); in ReachabilityAnnouncer_updatePeer()
613 struct Allocator* tempAlloc = Allocator_child(rap->alloc); in pushWithdrawLinks() local
614 struct ArrayList_OfBarePeers* snodePeers = getSnodeStatePeers(rap, tempAlloc); in pushWithdrawLinks()
[all …]
H A DReachabilityCollector.c142 struct Allocator* tempAlloc) in change0() argument
152 Address_toString(&oldPi->pub.addr, tempAlloc)->bytes, in change0()
153 Address_toString(nodeAddr, tempAlloc)->bytes); in change0()
166 Log_debug(rcp->log, "Peer [%s] added", Address_toString(&pi->pub.addr, tempAlloc)->bytes); in change0()
173 struct Allocator* tempAlloc = Allocator_child(rcp->alloc); in ReachabilityCollector_change() local
174 change0(rcp, nodeAddr, tempAlloc); in ReachabilityCollector_change()
175 Allocator_free(tempAlloc); in ReachabilityCollector_change()
/dports/net/cjdns/cjdns-cjdns-v21.1/interface/tuntap/test/
H A DTUNTools.c59 struct Allocator* tempAlloc = Allocator_child(ctx->pub.alloc); in sendHello() local
60 struct Message* msg = Message_new(0, 64, tempAlloc); in sendHello()
64 Allocator_free(tempAlloc); in sendHello()
/dports/net/cjdns/cjdns-cjdns-v21.1/util/
H A DSeccomp_linux.c427 Er_DEFUN(void Seccomp_dropPermissions(struct Allocator* tempAlloc, struct Log* logger)) in Er_DEFUN() argument
429 struct sock_fprog* filter = Er(mkFilter(tempAlloc)); in Er_DEFUN()
430 Er(installFilter(filter, logger, tempAlloc)); in Er_DEFUN()
432 Er_raise(tempAlloc, "Seccomp filter not installed properly, Seccomp_isWorking() -> false"); in Er_DEFUN()
H A DSeccomp_dummy.c19 Er_DEFUN(void Seccomp_dropPermissions(struct Allocator* tempAlloc, struct Log* logger)) in Er_DEFUN() argument
H A DSecurity.c140 Er_DEFUN(void Security_seccomp(struct Allocator* tempAlloc, struct Log* logger)) in Er_DEFUN() argument
142 Er(Seccomp_dropPermissions(tempAlloc, logger)); in Er_DEFUN()
H A DSeccomp_impl.h22 Er_DEFUN(void Seccomp_dropPermissions(struct Allocator* tempAlloc, struct Log* logger));
/dports/net/cjdns/cjdns-cjdns-v21.1/switch/test/
H A DEncodingScheme_test.c407 struct Allocator* tempAlloc = Allocator_child(alloc); in main() local
408 struct EncodingScheme* scheme = randomScheme(rand, tempAlloc); in main()
412 Allocator_free(tempAlloc); in main()
415 struct Allocator* tempAlloc = Allocator_child(alloc); in main() local
423 Allocator_free(tempAlloc); in main()
/dports/net/cjdns/cjdns-cjdns-v21.1/admin/
H A DAdmin.c300 static void availableFunctions(Dict* args, void* vAdmin, String* txid, struct Allocator* tempAlloc) in availableFunctions() argument
306 Dict* d = Dict_new(tempAlloc); in availableFunctions()
307 Dict* functions = Dict_new(tempAlloc); in availableFunctions()
310 Dict_putDict(functions, admin->functions[i].name, admin->functions[i].args, tempAlloc); in availableFunctions()
313 Dict_putIntC(d, "more", 1, tempAlloc); in availableFunctions()
315 Dict_putDictC(d, "availableFunctions", functions, tempAlloc); in availableFunctions()
/dports/net/cjdns/cjdns-cjdns-v21.1/interface/
H A DUDPInterface_admin.c100 struct Allocator* tempAlloc = Allocator_child(ctx->alloc); in beginConnection() local
104 addr = Sockaddr_clone(Sockaddr_LOOPBACK, tempAlloc); in beginConnection()
106 addr = Sockaddr_clone(Sockaddr_LOOPBACK6, tempAlloc); in beginConnection()
116 Allocator_free(tempAlloc); in beginConnection()

12