1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 14:39:02 +00:00

Renamed proxy actions into proxy op, which seems to be rather more meaningful.

This commit is contained in:
henri
2013-04-22 19:30:23 +00:00
parent e1030f2fe7
commit 48354754a8
3 changed files with 6 additions and 6 deletions

View File

@@ -67,7 +67,7 @@
/* Defined in nsock_proxy.c */
extern struct proxy_actions ProxyActions[];
extern struct proxy_op ProxyOps[];
/* Create the actual socket (nse->iod->sd) underlying the iod. This unblocks the

View File

@@ -99,7 +99,7 @@ static char *proxy_http_data_encode(const char *src, size_t len, size_t *dlen);
static char *proxy_http_data_decode(const char *src, size_t len, size_t *dlen);
const struct proxy_actions ProxyActions[PROXY_TYPE_COUNT] = {
const struct proxy_op ProxyOps[PROXY_TYPE_COUNT] = {
[PROXY_TYPE_HTTP] = {
.connect_tcp = proxy_http_connect_tcp,
.data_encode = proxy_http_data_encode,

View File

@@ -66,9 +66,9 @@
#define PROXY_CTX_NEXT(ctx) ((struct proxy_node *)((GH_LIST_ELEM_NEXT((ctx)->px_current)) ? GH_LIST_ELEM_DATA(GH_LIST_ELEM_NEXT((ctx)->px_current)) : NULL))
#define PROXY_CTX_NODES(ctx) ((ctx)->px_chain->nodes)
#define IOD_PX_TCP_CONNECT(iod) (ProxyActions[PROXY_CTX_CURRENT((iod)->px_ctx)->px_type].connect_tcp)
#define IOD_PX_DATA_ENCODE(iod) (ProxyActions[PROXY_CTX_CURRENT((iod)->px_ctx)->px_type].data_encode)
#define IOD_PX_DATA_DECODE(iod) (ProxyActions[PROXY_CTX_CURRENT((iod)->px_ctx)->px_type].data_decode)
#define IOD_PX_TCP_CONNECT(iod) (ProxyOps[PROXY_CTX_CURRENT((iod)->px_ctx)->px_type].connect_tcp)
#define IOD_PX_DATA_ENCODE(iod) (ProxyOps[PROXY_CTX_CURRENT((iod)->px_ctx)->px_type].data_encode)
#define IOD_PX_DATA_DECODE(iod) (ProxyOps[PROXY_CTX_CURRENT((iod)->px_ctx)->px_type].data_decode)
/* ------------------- CONSTANTS ------------------- */
@@ -116,7 +116,7 @@ struct proxy_chain_context {
nsock_ev_handler target_handler;
};
struct proxy_actions {
struct proxy_op {
nsock_event_id (*connect_tcp)(nsock_pool nsp, nsock_iod ms_iod, nsock_ev_handler handler, int mstimeout,
void *userdata, struct sockaddr *saddr, size_t sslen, unsigned short port);
char *(*data_encode)(const char *src, size_t len, size_t *dlen);