From nobody Mon Apr 29 17:29:29 2024 X-Original-To: bugs@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 4VSr156WrCz5JkbT for ; Mon, 29 Apr 2024 17:29:29 +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 4VSr151lZ9z4b7g for ; Mon, 29 Apr 2024 17:29:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714411769; a=rsa-sha256; cv=none; b=xSKppSj9j6iCzqYVYAz5FK9B+thi5XazifOyYRXnMJNEp1xLRbJO+G9Et6C1kG4bzI75z6 k+rJumTkCU8/HbUd4Vjgk+uJUTdk1OrYGKX8F91huKX4f7q8XmxJI6h9mtTktnwbABqLMU gBNyCAlz83Bzz72v5odoNxjznyILZ7LEy/BjhQG9wdR94cDtFMUWVvwj02N+1+UiBYuyK9 3wNyU1SDSTzzqVuRQuGBV6hx5wIM1Dm7fn8H5tx07qS6qnej/ND+SXMkBBhbSChk+uFPH5 RUhYywaGqcUTtT26mXQ1cUR7bdOsfB1DCY3OMn0yNoOb9jaHAQh4kwdqRtoONg== 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=1714411769; 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; bh=xE4ai8+MCnIUSUi/44y1iRWE11tmPi2dVbvuP0omH4A=; b=Ql2dVuNxOQDMupd9Kur7dOXiTQlBBv/H0BJKhQyp3yKih9al2Mc/JoQwi7QXi9dZdrAKWd KktLR29kXokTf/j+0sNlqCSmcb0E8eM6aLoljhy/lzsVmpFxQlg9qRD+CxlGVHjzMwymzZ UPB18p7Nd2iiohNCYtub2vhlGBOqTpxy+Ik1/ge1GNddyQPKuKFtyxACkkb725sqvFEjOE 2+kZ/cduVllZLgE2HlHCzfr2vcGTpPUNbZ8O8lqtMVswfiZ+nUMh+eddBpnB4bQIcJxeIZ OOhnwP2RuMW+avySmzHlHRhYUWST0lksayfI4Wou4BWUGWRZqsOAeBcXjMFO6g== 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 4VSr1513FFz1Gv5 for ; Mon, 29 Apr 2024 17:29:29 +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 43THTTas002134 for ; Mon, 29 Apr 2024 17:29:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43THTTbr002133 for bugs@FreeBSD.org; Mon, 29 Apr 2024 17:29:29 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: bugs@FreeBSD.org Subject: [Bug 278654] The -ifa modifier to route(8) is ineffective Date: Mon, 29 Apr 2024 17:29:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: karels@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278654 Bug ID: 278654 Summary: The -ifa modifier to route(8) is ineffective Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: karels@freebsd.org In 14.0 and -current as of this bug report, the -ifa modifier to route(8) h= as no effect. For example, if 10.0.3.99 is an alias on vtnet0 or lo0, and a r= oute is added via vtnet0 with -ifa 10.0.3.99, ping to that destination uses the primary address on vtnet0 as source. route get shows no indication of the i= fa address. ping -S 10.0.3.99 works as expected. Details (this example from -current): vmguest1# ifconfig lo0 alias 10.0.3.99/32 vmguest1# netstat -rnf inet Routing tables Internet: Destination Gateway Flags Netif Expire default 10.0.3.254 UGS vtnet0 10.0.3.0/24 link#1 U vtnet0 10.0.3.1 link#2 UHS lo0 10.0.3.99 link#2 UH lo0 127.0.0.1 link#2 UH lo0 vmguest1# route add freebsd-test -ifa 10.0.3.99 -ifp 10.0.3.1 10.0.3.254 add host freebsd-test: gateway 10.0.3.254 vmguest1# route -n get freebsd-test route to: 10.0.2.21 destination: 10.0.2.21 gateway: 10.0.3.254 fib: 0 interface: vtnet0 flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1500 1 0 vmguest1# route delete freebsd-test delete host freebsd-test vmguest1# route add freebsd-test -ifa 10.0.3.99 -ifp 10.0.3.1 10.0.3.254 add host freebsd-test: gateway 10.0.3.254 vmguest1# route -nv get freebsd-test route to: 10.0.2.21 destination: 10.0.2.21 gateway: 10.0.3.254 fib: 0 interface: vtnet0 flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1500 1 0 ping 10.0.2.21 then uses a source address of 10.0.3.1. The result is the s= ame if the alias is placed on vtnet0. --=20 You are receiving this mail because: You are the assignee for the bug.=