ssh: remove ssh-hpn leftovers
This was introduced in8998619212
, and left behind when the hpn-ssh patches were removed in60c59fad88
. Although Being able to log SO_RCVBUF in debug mode might have some small value on its own, it's not worth carrying an extra diff against upstream. Reviewed by: kevans MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28610
This commit is contained in:
parent
a78fee8182
commit
a62dc346f6
@ -1056,8 +1056,6 @@ listen_on_addrs(struct listenaddr *la)
|
|||||||
int ret, listen_sock;
|
int ret, listen_sock;
|
||||||
struct addrinfo *ai;
|
struct addrinfo *ai;
|
||||||
char ntop[NI_MAXHOST], strport[NI_MAXSERV];
|
char ntop[NI_MAXHOST], strport[NI_MAXSERV];
|
||||||
int socksize;
|
|
||||||
socklen_t len;
|
|
||||||
|
|
||||||
for (ai = la->addrs; ai; ai = ai->ai_next) {
|
for (ai = la->addrs; ai; ai = ai->ai_next) {
|
||||||
if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
|
if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
|
||||||
@ -1103,10 +1101,6 @@ listen_on_addrs(struct listenaddr *la)
|
|||||||
|
|
||||||
debug("Bind to port %s on %s.", strport, ntop);
|
debug("Bind to port %s on %s.", strport, ntop);
|
||||||
|
|
||||||
len = sizeof(socksize);
|
|
||||||
getsockopt(listen_sock, SOL_SOCKET, SO_RCVBUF, &socksize, &len);
|
|
||||||
debug("Server TCP RWIN socket size: %d", socksize);
|
|
||||||
|
|
||||||
/* Bind the socket to the desired port. */
|
/* Bind the socket to the desired port. */
|
||||||
if (bind(listen_sock, ai->ai_addr, ai->ai_addrlen) < 0) {
|
if (bind(listen_sock, ai->ai_addr, ai->ai_addrlen) < 0) {
|
||||||
error("Bind to port %s on %s failed: %.200s.",
|
error("Bind to port %s on %s failed: %.200s.",
|
||||||
|
Loading…
Reference in New Issue
Block a user