From nobody Mon Jun 5 12:19:35 2023 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QZXjN2w2Qz4ZsCf for ; Mon, 5 Jun 2023 12:19:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QZXjN1x5wz3Q84 for ; Mon, 5 Jun 2023 12:19:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685967576; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KhvH8rYB3qibu3ss4hI6uqjGzn10gKp4RKThi9Rx0xM=; b=RCYSw5+ll/AJTn2cWwyLQicD8M7/DusjCWtTBbVK/Q82Re/WNZfq3NAnKEmf0jiupA49r8 Wv3ARW/+oQu7N3QOc20BN+L4c4Hho8DnL7uBIbDdM3blSgAYXUHTt9zwSjO1gCiq3rgRvJ oCidGHycIvoigQr6kVVfd2drudwwJ8SewaseZ8WaNHHK5y8rY1XncGr2FVgkvnMuPcHY0Z BTKRIx5T85plffG7UatSB1BZmptXBhxAbF7KYjxvqNhxxFO8Qomd9weKVHVFU6jfFkJJdJ rU+JejVmdfXsUE2zjcVVrRvJnLMo1fHPkOHQIGzGpHbSpPvFkj1KskwCDSZDUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685967576; a=rsa-sha256; cv=none; b=DVeRlCk5IIM6mIPWKsbqLaz7AW8UZ+pfPANjSD79M95niQtS0NcG12WAIADDukEzt0oan6 rVNd+uv04aLtSHUP/W/7SlokVEWz3vocrG/jVUltdM1WMTuIxI+Ud0i/xC94PEWb+CesvL V59DqDgxJmYwPKtLNaNG3wbICAnOI8Tawp2Eo+MrNtneHMSuGqxcPZgejA6gycYlpke5Vj ebAFAN21FHKrbIDKPJRVi+AMtvVWUYCtAvd7sIrW3FEcKpf2XbpHfy5NT8l5tt/inD2nRj Y+P72eo8Uqhy6QnDOxe3hCMhcYldwX6GKiOvFeyWYTJPHD7fHwGK/OKpRpQ3Iw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QZXjN0tmczmxf for ; Mon, 5 Jun 2023 12:19:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 355CJatc047014 for ; Mon, 5 Jun 2023 12:19:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 355CJa5Q047013 for net@FreeBSD.org; Mon, 5 Jun 2023 12:19:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 128954] ifconfig(8) deletes valid routes Date: Mon, 05 Jun 2023 12:19:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: melifaro@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D128954 --- Comment #8 from Alexander V. Chernikov --- (In reply to Alexander V. Chernikov from comment #4) I'd like to state that I'm not particularly happy about this design decisio= n, but (as of now) I don't see an easy way to fix this. To avoid deleting the routes one needs to provide an alternative for the so= urce address, which is impossible for the system with a single ifa (given that 127.0.0.1 cannot be the source of such routes). To have an alternative, one needs to propagate the "change" event for the ifa instead of a pair of delete/add event. Specifically, 1) When scanning the routes on ifa deletion/change the logic for SaS select= ion, along with the logic for the nexthop creation has to be added. 2) Ifa change has to be propagated from the protocol control player (no such thing exists ATM) 3) Ifa change has to start from the userland (e.g. ifconfig has to be taugh= t to do replace instead of delete/update) 4) The current approach results in "silent" deletion not propagated to the routing socket. The new approach will result in the route changes. Making it compatible for rtsock-based routing daemons may be tricky. While 2) (partially) and 3) is going to be address by the upcoming Netlink enhancements for the address manipulation, the considerable amount of effort still remains, with the biggest part being backward compatibility. --=20 You are receiving this mail because: You are the assignee for the bug.=