summaryrefslogtreecommitdiffstats
path: root/src/net-proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net-proxy.h')
-rw-r--r--src/net-proxy.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net-proxy.h b/src/net-proxy.h
index 27d7124..4fb54d9 100644
--- a/src/net-proxy.h
+++ b/src/net-proxy.h
@@ -27,8 +27,7 @@ enum {
#define TSNIF_NP_TCP (TSNIF_NP_TCP_CLIENT | TSNIF_NP_TCP_SERVER)
struct tsnif_np_args {
- char *host;
- int port;
+ struct sockaddr_in sa;
int flags;
};
@@ -45,10 +44,11 @@ struct tsnif_np_handle {
/* tcp properties */
int fd_tcp;
-
- int flags;
+ struct tsnif_np_args *args;
};
+#define TSNIF_NP_FLAGS(h) (h->args->flags)
+
struct tsnif_np_msg {
struct trans_msg msg;
char data[0];
@@ -76,7 +76,7 @@ int tsnif_np_process(struct tsnif_handle *h, fd_set *set);
int tsnif_np_close(struct tsnif_handle *h);
int tsnif_np_send_client(struct tsnif_handle *h, struct trans_msg *msg);
int tsnif_np_send_server(struct tsnif_handle *h, struct trans_msg *msg);
-void tsnif_np_args(struct tsnif_np_args *args, int flag, char *host);
+int tsnif_np_args(struct tsnif_np_args *args, int flag, char *host);
int tsnif_np_dispatch(struct tsnif_handle *h, struct trans_msg *msg);
#endif /* NET_PROXY_H */