Lines Matching refs:s5_req
1376 } s5_req, s5_rsp; in channel_decode_socks5() local
1422 if (have < sizeof(s5_req)+1) in channel_decode_socks5()
1424 memcpy(&s5_req, p, sizeof(s5_req)); in channel_decode_socks5()
1425 if (s5_req.version != 0x05 || in channel_decode_socks5()
1426 s5_req.command != SSH_SOCKS5_CONNECT || in channel_decode_socks5()
1427 s5_req.reserved != 0x00) { in channel_decode_socks5()
1431 switch (s5_req.atyp){ in channel_decode_socks5()
1437 addrlen = p[sizeof(s5_req)]; in channel_decode_socks5()
1445 debug2("channel %d: bad socks5 atyp %d", c->self, s5_req.atyp); in channel_decode_socks5()
1448 need = sizeof(s5_req) + addrlen + 2; in channel_decode_socks5()
1449 if (s5_req.atyp == SSH_SOCKS5_DOMAIN) in channel_decode_socks5()
1453 if ((r = sshbuf_consume(input, sizeof(s5_req))) != 0) { in channel_decode_socks5()
1457 if (s5_req.atyp == SSH_SOCKS5_DOMAIN) { in channel_decode_socks5()
1472 if (s5_req.atyp == SSH_SOCKS5_DOMAIN) { in channel_decode_socks5()
1487 c->self, c->path, c->host_port, s5_req.command); in channel_decode_socks5()