mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
test for linux/pkt-sched.h rather than SO_PRIORITY
This commit is contained in:
4
netio.c
4
netio.c
@@ -306,7 +306,7 @@ void set_sock_priority(int sock, enum dropbear_prio prio) {
|
||||
#ifdef IPTOS_LOWDELAY
|
||||
int iptos_val = 0;
|
||||
#endif
|
||||
#ifdef SO_PRIORITY
|
||||
#ifdef HAVE_LINUX_PKT_SCHED_H
|
||||
int so_prio_val = 0;
|
||||
#endif
|
||||
|
||||
@@ -333,7 +333,7 @@ void set_sock_priority(int sock, enum dropbear_prio prio) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef SO_PRIORITY
|
||||
#ifdef HAVE_LINUX_PKT_SCHED_H
|
||||
if (prio == DROPBEAR_PRIO_LOWDELAY) {
|
||||
so_prio_val = TC_PRIO_INTERACTIVE;
|
||||
} else if (prio == DROPBEAR_PRIO_BULK) {
|
||||
|
||||
Reference in New Issue
Block a user