From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (unknown [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 09DAC8017D for ; Thu, 24 Sep 2026 11:07:45 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 68OB6U2b014344; Thu, 24 Sep 2026 14:06:31 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 68OB6U2b014344 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="abv6e5H7" Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 68OB6LnP014306 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 24 Sep 2026 14:06:21 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 68OB6LnP014306 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-49fe8bf258eso5917185e9.2 for ; Thu, 24 Sep 2026 04:06:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBw37hneaNYm3E9oxrT/m3EUwudHG3PdzN/OvfFAqb1ehJGGUGz02ee/Fs4W+l2dkQbGULN4hA==@openvz.org X-Gm-Message-State: AFuF++m4BBHAtRZRhiqiWrAghICagjylRFXTzi8oP1jlbOJB3jwgfTe3 Jq8ENBs8nbKdYNBKojrAIOMNiE9xJbPeV//2OiyCD0K+Y05x7PvY5LFLy7kRMq69x9hQuL6274V WAFUcF/oiE1fe9nEr8vtia+RK8GcdW2TIgjgLHzy5/PrHoPnNaw2cLg== X-Gm-Gg: AYBFou3PjwlLmfhts6E5aky+D8/mkjRfMmn8eNlW6hYypFwPnYZbsfmh20utQFW8jzh OfhkEQf0EP8+AdfMi7zniyS3ov6QlwVpAm7x7m4VfvLiNqp5BTl+M6NjeKc8weqGijv66uMn7kx PebC++HWIkuxLbozYgltOgGdc9fTsjHkcRyHUnh8ZZw2koy3cOejaC5FQbxoQ+HD0TLh0iXkGGP JEFulaY/REnDSTKqBAmIyEPOXkJyrKH7CAhY0IOoWwHFDdTAolcQ8webiqj2Aea5e+I7st14/WR XYGrXnExyMZtPIrRCWlG9E4XyRcLlr7Ko/wqltuQmBJbKO3x7JzWjmM5vCkjfySuOvTsa3apeQU lxmsClDw96gNuOT1w X-Received: by 2002:a05:600c:638f:b0:49c:ffab:551f with SMTP id 5b1f17b1804b1-49fe66d8112mr31612575e9.22.1790247981227; Thu, 24 Sep 2026 04:06:21 -0700 (PDT) X-Received: by 2002:a05:600c:638f:b0:49c:ffab:551f with SMTP id 5b1f17b1804b1-49fe66d8112mr31611925e9.22.1790247980650; Thu, 24 Sep 2026 04:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1790247980; cv=none; d=google.com; s=arc-20260327; b=P23cVUYQEVlANg3vWZxTXelltjJ0NQpUFIDYXF4IRiygL+JrkBlGucV9zrB6R531JH djuMW13AVcGonzuBJOxn6W0CAoLR+unemvqWUaWIYEknT8FmWRdjALNZ8ejAOLS76xex kPfu3zfyo2xnk3y/FbcDbCQbzxNzci/l/O5yvGsRdp39NGsw6rOFF801W8vUqlIKQnAg uz8+pmJonYRpZpPYemH8qnYOtZ5MtXD01aAQJNunM6dkZQtMZGgrNAM/FdDfvAGwrHOS 60YhHVdJeBG/KwrGbitM1+XI6KVaDnys4wfhfc6jIzWi1q+1oOzDCaWJvehph6VSmrf7 Phyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=k4cTx3u+CWjkEe8bY5zgATxJtt4jz4ihtrvJEV4yFes=; fh=Ac4B+E9J0iKprNz57k5baX4D1nACtq3mk5EYYPOTKpA=; b=bySUDprJkRKFk9wOUJc3ATFhT0uFRuNGJUoeM/h34FlHzEi3QkM2J2KLtdspfH9awZ V/+eeE3ruo6/7TDNbRJ0nJAc7FgYzi3cDrDreZT7fS392E3xzYz90TN/rXYowgRaEGNv cxK2YGW8FlQKNaybFAOg3cElHHx27j+Z7E/mZE8hHxq7W8XGxRUTHE0ygWoTc2QomtMX woEz+gKq7T73xxURwPnlhrD8BH45pVA5+p6TGYs6s8itppDCEaReUBDBhH6qNUsvXvuK JpPQG1RQXaOMWSTzro2JZMQByiD58N957xeFEpo4qG/DH3N32ObhDf6hdXOKAi5f2c0F 1SJw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=abv6e5H7; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-4886846bd15si8622652f8f.20.2026.09.24.04.06.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2026 04:06:20 -0700 (PDT) Received-SPF: pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=abv6e5H7; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=Message-Id:Content-Type:MIME-Version:Subject:Date :From; bh=k4cTx3u+CWjkEe8bY5zgATxJtt4jz4ihtrvJEV4yFes=; b=abv6e5H7JVef8VnECIL LDzwQ3HcH+p/Et6bPgxRzdyIOAvhNHxRquUsfNW+EKRQoTGLFQjNwL/qlDrFZkOTdyzNBFbkacE3Z e1QdWN9Dd6K520whZAJ+9xbo/2D+nPP/pV+PmgAj16gdbyaJg725tENPvnNC5KibLlvxtLDoKCRRM n/o5ILEaaQ/ZLgWCptiDSY4OyCu5ahzdXJjhK2D5gsJ6cutysBHTU7I6G+HgxmPO/1EjqqQIAblT6 fwT9UV/MSp5tHCmcoG+AfwghhCA6f0VlLWDz3/mrRSDmRLOfBC9JKUbl1UmRhPJ0/miNn/kfvz2G5 MLSf3/hM7GtheYQ==; Received: from ch-demo-asa.virtuozzo.com ([130.117.225.8] helo=f0.sw.ru) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1x9hET-00CbHw-35; Thu, 24 Sep 2026 13:06:18 +0200 From: Konstantin Khorenko Date: Thu, 24 Sep 2026 13:06:07 +0200 MIME-Version: 1.0 Message-Id: <20260924-b4-prep-netfilter-v3-2-e6a17b8f193f@virtuozzo.com> References: <20260924-b4-prep-netfilter-v3-0-e6a17b8f193f@virtuozzo.com> In-Reply-To: <20260924-b4-prep-netfilter-v3-0-e6a17b8f193f@virtuozzo.com> To: Konstantin Khorenko , devel@openvz.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1726; i=khorenko@virtuozzo.com; h=from:subject:message-id; bh=IFYGo/G9MLzh1Y8BsLMTBVjr5xGeRBWQW5mrzFsPxuc=; b=owEBbQKS/ZANAwAKAVGWCkf5YVwqAcsmYgBqtQQq99EQtcnoH0/Pr4ChnGXbqz1KPn2WvYBlv EafF+K4U6KJAjMEAAEKAB0WIQRWD23IPcXT0GO9CCxRlgpH+WFcKgUCarUEKgAKCRBRlgpH+WFc KshaEACchcWxxo5sP4MQmKRNoPxvNrfY1drBvPoTqjOaZh9Ivtrv+Vfse8fmW8aBZ1TPv1cgD8S PHD2NXZAJb16RcHZvK56F0zC5ylkac4gSDBuhQ+gUFLQiW452r8vTi7wO8tjLzzDgmz8zFoXC7B TO1rVPnE8f5RwJz2EbPrJPGwtOeR4DQvKFfOUIW81XWewoZ101HgxEWm4vt3thxO0CkUfHYgCsa YStryUFuw7U3puljWGFi80a0N1E/I5xHbq0LhECT7vhkBQhkD58FvCcaiy3flhLvj5oTnriikMR qZqFVI0qSDa+WrGroRZmbZFpeeT9LKcLM8f0f+9xrzBXL6Dlj8Gm6Ud7if9ptvgAD+jecdOcJKr WJloJfyWhvyTOI78CLe0+t9ps31D3Sai1SYbVwK1BFuEzD8MDDpZcV+OVPaRnlwUwahNSON0nSC K07TyixzIz2m+ks/tOfOEUPNPjdFbp/NJxN+Q3oUvqnpKw92F05js38Ak7EzjnAAyNHQ+D6DPej tu/iSQ4iwaba0kHqDJsxWvj44yjylimokBeX5JHhsJzkpvFFKExrydQmW9Rax0viTF6GQYkLHeO GDHs/+WasO3iyfdgKeXfNvrZAY2iZjZJjlgGaqjug/FtOT0GsR+Czt6J2VOJNrKNfm/Gz1oEN70 JOzT14DFoOKEXnA== X-Developer-Key: i=khorenko@virtuozzo.com; a=openpgp; fpr=560F6DC83DC5D3D063BD082C51960A47F9615C2A X-OZ-Fwd: true Subject: [Devel] [PATCH hci-8.1 v3 2/5] selftests: netfilter: let the router send redirects X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org From: Eva Kurchatova The icmp_redirect part of conntrack_icmp_related.sh waits for the router to send an ICMP redirect, but a new namespace takes send_redirects from init_net, and it is commonly turned off there: # ip netns exec "$nsrouter1" \ # cat /proc/sys/net/ipv4/conf/all/send_redirects 0 with nothing sent, the test times out waiting. Ask for it on the router that is supposed to send them. https://virtuozzo.atlassian.net/browse/VSTOR-139651 Feature: fix selftests Signed-off-by: Eva Kurchatova Reviewed-by: Konstantin Khorenko --- v3: say the value is copied from init_net rather than from the creating namespace. --- tools/testing/selftests/net/netfilter/conntrack_icmp_related.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/net/netfilter/conntrack_icmp_related.sh b/tools/testing/selftests/net/netfilter/conntrack_icmp_related.sh index c63d840ead61f..44a98c53d085e 100755 --- a/tools/testing/selftests/net/netfilter/conntrack_icmp_related.sh +++ b/tools/testing/selftests/net/netfilter/conntrack_icmp_related.sh @@ -253,6 +253,12 @@ else fi # add 'bad' route, expect icmp REDIRECT to be generated +# A new namespace inherits send_redirects from the host, where it is +# often turned off; without it the router never sends the redirect this +# part of the test waits for. +ip netns exec "$nsrouter1" sysctl -q net.ipv4.conf.all.send_redirects=1 +ip netns exec "$nsrouter1" sysctl -q net.ipv4.conf.default.send_redirects=1 + ip netns exec "${nsclient1}" ip route add 192.168.1.42 via 192.168.1.1 ip netns exec "${nsclient1}" ip route add dead:1::42 via dead:1::1 -- 2.43.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel