mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-02-09 06:33:31 +08:00
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
16 lines
238 B
C
16 lines
238 B
C
#ifndef IP_TYPE_H
|
|
#define IP_TYPE_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef union {
|
|
unsigned char octet[4];
|
|
uint32_t as_int;
|
|
} ip_type;
|
|
|
|
extern const ip_type ip_type_invalid;
|
|
extern const ip_type ip_type_localhost;
|
|
|
|
//RcB: DEP "ip_type.c"
|
|
#endif
|