Mercurial > dropbear
comparison netio.c @ 1704:d384bc2e5af3
Don't warn when SO_PRIORITY fails
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 28 May 2020 23:26:34 +0800 |
parents | 35a1e8de3aec |
children | 58f7ca8ebc82 |
comparison
equal
deleted
inserted
replaced
1703:ee6ccc2ecc47 | 1704:d384bc2e5af3 |
---|---|
396 } else if (prio == DROPBEAR_PRIO_BULK) { | 396 } else if (prio == DROPBEAR_PRIO_BULK) { |
397 so_prio_val = TC_PRIO_BULK; | 397 so_prio_val = TC_PRIO_BULK; |
398 } | 398 } |
399 /* linux specific, sets QoS class. see tc-prio(8) */ | 399 /* linux specific, sets QoS class. see tc-prio(8) */ |
400 rc = setsockopt(sock, SOL_SOCKET, SO_PRIORITY, (void*) &so_prio_val, sizeof(so_prio_val)); | 400 rc = setsockopt(sock, SOL_SOCKET, SO_PRIORITY, (void*) &so_prio_val, sizeof(so_prio_val)); |
401 if (rc < 0 && errno != ENOTSOCK) | 401 if (rc < 0 && errno != ENOTSOCK) { |
402 dropbear_log(LOG_WARNING, "Couldn't set SO_PRIORITY (%s)", | 402 TRACE(("Couldn't set SO_PRIORITY (%s)", strerror(errno))) |
403 strerror(errno)); | 403 } |
404 #endif | 404 #endif |
405 | 405 |
406 } | 406 } |
407 | 407 |
408 /* from openssh/canohost.c avoid premature-optimization */ | 408 /* from openssh/canohost.c avoid premature-optimization */ |