]> git.ipfire.org Git - thirdparty/bird.git/commit
IO: Fix socket priority
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 23 Jan 2018 16:05:45 +0000 (17:05 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 23 Jan 2018 16:05:45 +0000 (17:05 +0100)
commitd6cf996151307d083c30e4ecde0f1d7449b19253
tree2c005e24fb82c7f83d34f99e68c452110dbb6176
parent63472779ad4ecdecbcfedf2d2bb40abc2f8c84b0
IO: Fix socket priority

On Linux, setting the ToS will also set the priority and the range of
accepted values is quite limited (masked by 0x1e). Therefore, 0xc0 is
translated to a priority of 0, not something we want, overriding the
"7" priority which was set previously explicitely. To avoid that, just
move setting priority later in the code.

Thanks to Vincent Bernat for the patch.
sysdep/unix/io.c