Lines Matching refs:s5_req
1174 } s5_req, s5_rsp; in channel_decode_socks5() local
1213 if (have < sizeof(s5_req)+1) in channel_decode_socks5()
1215 memcpy(&s5_req, p, sizeof(s5_req)); in channel_decode_socks5()
1216 if (s5_req.version != 0x05 || in channel_decode_socks5()
1217 s5_req.command != SSH_SOCKS5_CONNECT || in channel_decode_socks5()
1218 s5_req.reserved != 0x00) { in channel_decode_socks5()
1222 switch (s5_req.atyp){ in channel_decode_socks5()
1228 addrlen = p[sizeof(s5_req)]; in channel_decode_socks5()
1236 debug2("channel %d: bad socks5 atyp %d", c->self, s5_req.atyp); in channel_decode_socks5()
1239 need = sizeof(s5_req) + addrlen + 2; in channel_decode_socks5()
1240 if (s5_req.atyp == SSH_SOCKS5_DOMAIN) in channel_decode_socks5()
1244 buffer_consume(&c->input, sizeof(s5_req)); in channel_decode_socks5()
1245 if (s5_req.atyp == SSH_SOCKS5_DOMAIN) in channel_decode_socks5()
1252 if (s5_req.atyp == SSH_SOCKS5_DOMAIN) { in channel_decode_socks5()
1267 c->self, c->path, c->host_port, s5_req.command); in channel_decode_socks5()