mirror of
https://github.com/rofl0r/proxychains-ng
synced 2026-05-14 09:32:35 +08:00
d0abc93c74
instead of allocating memory in the child, we now use the allocator thread to do all the necessary allocations himself. additionally we provide a clean API to query the ip <-> dns mapping. these functions connect via a pipe to the allocator thread, and exchange messages. further cleanup is needed, but it seems to work so far. thread-safety is not yet guaranteed. closes #1
6 lines
127 B
C
6 lines
127 B
C
#include "ip_type.h"
|
|
|
|
const ip_type ip_type_invalid = { .as_int = -1 };
|
|
const ip_type ip_type_localhost = { {127, 0, 0, 1} };
|
|
|