mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-08 22:22:52 +08:00
macros
This commit is contained in:
parent
f55c6bc4d5
commit
caed782652
@ -82,12 +82,14 @@ static void init_lib(void) {
|
|||||||
char* symname;
|
char* symname;
|
||||||
void* proxyfunc;
|
void* proxyfunc;
|
||||||
} override_symbols[] = {
|
} override_symbols[] = {
|
||||||
{ .funcptr = &true_connect, .symname = "connect", .proxyfunc = connect,},
|
#define SYM_ENTRY(X) { .funcptr = &true_ ## X, .symname = # X, .proxyfunc = X,}
|
||||||
{ .funcptr = &true_gethostbyname, .symname = "gethostbyname", .proxyfunc = gethostbyname,},
|
SYM_ENTRY(connect),
|
||||||
{ .funcptr = &true_getaddrinfo, .symname = "getaddrinfo", .proxyfunc = getaddrinfo,},
|
SYM_ENTRY(gethostbyname),
|
||||||
{ .funcptr = &true_freeaddrinfo, .symname = "freeaddrinfo", .proxyfunc = freeaddrinfo,},
|
SYM_ENTRY(getaddrinfo),
|
||||||
{ .funcptr = &true_gethostbyaddr, .symname = "gethostbyaddr", .proxyfunc = gethostbyaddr,},
|
SYM_ENTRY(freeaddrinfo),
|
||||||
{ .funcptr = &true_getnameinfo, .symname = "getnameinfo", .proxyfunc = getnameinfo,},
|
SYM_ENTRY(gethostbyaddr),
|
||||||
|
SYM_ENTRY(getnameinfo),
|
||||||
|
#undef SYM_ENTRY
|
||||||
};
|
};
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user