From nobody Sat Sep 9 10:26:38 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 4RjTfl6LSMz4sgFl for ; Sat, 9 Sep 2023 10:26:39 +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 4RjTfl5KWpz3T83 for ; Sat, 9 Sep 2023 10:26:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694255199; a=rsa-sha256; cv=none; b=Qyy1IzsE6MJRnIVrmTwGrVn7R0gmBO3qY7fn3BsyW6y75TBUXZoEVumigfVl51JBdRuuyQ lMXIQSJZeDl745PlqJhGcPgDaWB5xGawNcjzaCL1MJTtI+BJHthTMckYy0dauhFwU1SGdV 0BJDTfmRWjXnsGPfCMPMibWnujrM6KAcRFNGs7O1cUxefT4G8hc0+09jJ4p72iGHHwNEsr 83SCWIFafZvH8KE4Tv7QCRjgBeh7Wwvjm4DvCiuwaRSFI9I9fSZVUKEyvm5+IsRGW65th8 AtpApQg7BQrO7lqNGhcMNyNbVWdRsINE7o4DNjpgSZtPu0BaNmsm+FmUqx3bQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694255199; 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=Vwy/+6hdUIL4BNxNOtklxs9raC1PvhBzl44BFGkKqbM=; b=NGzm12sGhc9l3G8b8l/w/WHCK3hD+D+0cy+neTrHsEseiiNZjvEzhnK/AI5VYDlXYOHQnZ vjAljFXupS1TimC24Op2jTVw9dV63b3X2daRc/tjwQ6DurDxUELsuQPPpjuPaivCmsXCb1 M8SEJ3tnYbFiDWLybVr2xFmQeiArYJK5uUc5lQZJydjY0da1fcU5/ac2VsrwV2x55Z+g57 vCLrOappJBR6f8rkds8QI91Q6UoQqOhsbDPJbUrEVXoP1iZWng16j0WRFdAOSvbFL4HBo0 w9Z4AdZclzaQTc7KhAeRo2CMj43k5eZ1+EyUE0gjxYnXV7mwikbQWVMGqGHJbw== 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 4RjTfl49q0z6Dv for ; Sat, 9 Sep 2023 10:26:39 +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 389AQdex047515 for ; Sat, 9 Sep 2023 10:26:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 389AQdIo047514 for net@FreeBSD.org; Sat, 9 Sep 2023 10:26:39 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 273640] route delete fails when specifying both -inet and -iface Date: Sat, 09 Sep 2023 10:26:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zlei@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273640 --- Comment #4 from Zhenlei Huang --- (In reply to mmendoza from comment #0) > Example route: > # route show -inet default > route to: default > destination: default > mask: default > gateway: 10.0.5.1 > fib: 0 > interface: vmx0 > flags: > recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1500 0 0 Option `-iface` of route(8) is for directly connected route. In the above example, the `default` or `0.0.0.0/0` is not directly connected. It does not make sense if you try to delete it with option `-iface`. (In reply to mmendoza from comment #2) > Further tests indicate that it's only an issue with combining both "-inet= " and > "-iface" (IPv6 works), and only when the CIDR size is omitted. This works: > # route del -inet 192.168.1.0/24 -iface vmx0 I bet your route `192.168.1.0/24` is directly connected. It may looks like: ``` route to: 192.168.1.0 destination: 192.168.1.0 mask: 255.255.255.0 fib: 0 interface: vmx0 flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1500 1 0 ``` --=20 You are receiving this mail because: You are the assignee for the bug.=