Displaying 1 result from an estimated 1 matches for "channel_pre_rdynam".
Did you mean:
channel_pre_rdynamic
2012 Oct 22
1
[PATCH] Implement remote dynamic TCP forwarding
...append(output, &s5_rsp, sizeof(s5_rsp));
+ buffer_append(output, &dest_addr, sizeof(struct in_addr));
+ buffer_append(output, &dest_port, sizeof(dest_port));
return 1;
}
@@ -1317,6 +1341,92 @@ channel_pre_dynamic(Channel *c, fd_set *readset, fd_set *writeset)
}
}
+static void
+channel_pre_rdynamic(Channel *c, fd_set *readset, fd_set *writeset)
+{
+ u_char *p;
+ u_int have;
+ int ret;
+
+ if (c->sock >= 0) {
+ /* SOCKS session was established. */
+ FD_SET(c->sock, writeset);
+ return;
+ }
+
+ have = buffer_len(&c->output);
+ debug2("channel %d: pre_rdynamic: have %d&...