Mercurial > dropbear
comparison netio.c @ 1428:69862e8cc405 fuzz
merge from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 24 Jun 2017 00:47:07 +0800 |
parents | f03cfe9c76ac 89f8c5960527 |
children | 5916af64acd4 |
comparison
equal
deleted
inserted
replaced
1417:4f17d75d027b | 1428:69862e8cc405 |
---|---|
305 | 305 |
306 int rc; | 306 int rc; |
307 #ifdef IPTOS_LOWDELAY | 307 #ifdef IPTOS_LOWDELAY |
308 int iptos_val = 0; | 308 int iptos_val = 0; |
309 #endif | 309 #endif |
310 #ifdef SO_PRIORITY | 310 #ifdef HAVE_LINUX_PKT_SCHED_H |
311 int so_prio_val = 0; | 311 int so_prio_val = 0; |
312 #endif | 312 #endif |
313 | 313 |
314 #ifdef DROPBEAR_FUZZ | 314 #ifdef DROPBEAR_FUZZ |
315 if (fuzz.fuzzing) { | 315 if (fuzz.fuzzing) { |
338 if (rc < 0 && errno != ENOTSOCK) { | 338 if (rc < 0 && errno != ENOTSOCK) { |
339 TRACE(("Couldn't set IP_TOS (%s)", strerror(errno))); | 339 TRACE(("Couldn't set IP_TOS (%s)", strerror(errno))); |
340 } | 340 } |
341 #endif | 341 #endif |
342 | 342 |
343 #ifdef SO_PRIORITY | 343 #ifdef HAVE_LINUX_PKT_SCHED_H |
344 if (prio == DROPBEAR_PRIO_LOWDELAY) { | 344 if (prio == DROPBEAR_PRIO_LOWDELAY) { |
345 so_prio_val = TC_PRIO_INTERACTIVE; | 345 so_prio_val = TC_PRIO_INTERACTIVE; |
346 } else if (prio == DROPBEAR_PRIO_BULK) { | 346 } else if (prio == DROPBEAR_PRIO_BULK) { |
347 so_prio_val = TC_PRIO_BULK; | 347 so_prio_val = TC_PRIO_BULK; |
348 } | 348 } |