From e028b3ca649cc2d55c6ef54e3fef1338015c0554 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 30 Nov 2025 10:03:07 +0300 Subject: [PATCH] =?utf8?q?softflowd=20=D0=B8=20IPv6=20ToS?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Как только начал возиться с DSCP в IP пакетах, то обнаружил, что softflowd (a7a40dc150b30297888da95c5d95abb4679d6b21) не заполняет ToS поле в своей отправляемой статистике. Посмотрел код, починил так, отбрасывая ECN биты: - flow->tos[ndx] = (ntohl (ip6->ip6_flow) & ntohl (0x0ff00000)) >> 20; + flow->tos[ndx] = (ntohl(ip6->ip6_flow) >> 20) & 0xfc; -- 2.52.0