Lines Matching refs:s5_req
1238 } s5_req, s5_rsp; in channel_decode_socks5() local
1277 if (have < sizeof(s5_req)+1) in channel_decode_socks5()
1279 memcpy(&s5_req, p, sizeof(s5_req)); in channel_decode_socks5()
1280 if (s5_req.version != 0x05 || in channel_decode_socks5()
1281 s5_req.command != SSH_SOCKS5_CONNECT || in channel_decode_socks5()
1282 s5_req.reserved != 0x00) { in channel_decode_socks5()
1286 switch (s5_req.atyp){ in channel_decode_socks5()
1292 addrlen = p[sizeof(s5_req)]; in channel_decode_socks5()
1300 debug2("channel %d: bad socks5 atyp %d", c->self, s5_req.atyp); in channel_decode_socks5()
1303 need = sizeof(s5_req) + addrlen + 2; in channel_decode_socks5()
1304 if (s5_req.atyp == SSH_SOCKS5_DOMAIN) in channel_decode_socks5()
1308 buffer_consume(&c->input, sizeof(s5_req)); in channel_decode_socks5()
1309 if (s5_req.atyp == SSH_SOCKS5_DOMAIN) in channel_decode_socks5()
1316 if (s5_req.atyp == SSH_SOCKS5_DOMAIN) { in channel_decode_socks5()
1331 c->self, c->path, c->host_port, s5_req.command); in channel_decode_socks5()