From owner-freebsd-bugs@freebsd.org Mon Jan 25 21:30:52 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D80964F1FEA for ; Mon, 25 Jan 2021 21:30:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4DPjhr5bHgz3NMd for ; Mon, 25 Jan 2021 21:30:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id BE2C14F1FE9; Mon, 25 Jan 2021 21:30:52 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BDF464F244D for ; Mon, 25 Jan 2021 21:30:52 +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 4DPjhr4Y2yz3N3q for ; Mon, 25 Jan 2021 21:30:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 8F1AD1D7A1 for ; Mon, 25 Jan 2021 21:30:52 +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 10PLUqSb023842 for ; Mon, 25 Jan 2021 21:30:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 10PLUqkK023841 for bugs@FreeBSD.org; Mon, 25 Jan 2021 21:30:52 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 253005] Received IPv6 RA message with plen !=64 in PIO is not processed. Date: Mon, 25 Jan 2021 21:30:52 +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: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dmytro@shytyi.net 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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2021 21:30:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253005 Bug ID: 253005 Summary: Received IPv6 RA message with plen !=3D64 in PIO is not processed. Product: Base System Version: 12.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dmytro@shytyi.net Overview: Received IPv6 prefix via Prefix Information Option in RA message is not processed (Even when presented code seems to have this ability). There is function "in6_ifadd()" referenced in the: source/netinet6/nd6_rtr.c Line: 1624 This function seems to allow configuration of the prefix and IID with length !=3D64. The code responsible for setting prefix and IID with length !=3D64 is prese= nted inline and below: source/netinet6/nd6_rtr.c Lines: 2233-2244 Actual Results: When FreeBSD receives an RA message with prefix len =3D=3D 80, no ipv6 addr= ess with plen =3D 80 is autoconfigured on the interfaces. Expected Results:=20 Ipv6 address with plen =3D=3D 80 autoconfigured on the interfaces. Code: 2232 /* make ifaddr */ 2233 in6_prepare_ifra(&ifra, &pr->ndpr_prefix.sin6_addr, &mask); 2234=20 2235 IN6_MASK_ADDR(&ifra.ifra_addr.sin6_addr, &mask); 2236 /* interface ID */ 2237 ifra.ifra_addr.sin6_addr.s6_addr32[0] |=3D 2238 (ib->ia_addr.sin6_addr.s6_addr32[0] & ~mask.s6_addr32[0]); 2239 ifra.ifra_addr.sin6_addr.s6_addr32[1] |=3D 2240 (ib->ia_addr.sin6_addr.s6_addr32[1] & ~mask.s6_addr32[1]); 2241 ifra.ifra_addr.sin6_addr.s6_addr32[2] |=3D 2242 (ib->ia_addr.sin6_addr.s6_addr32[2] & ~mask.s6_addr32[2]); 2243 ifra.ifra_addr.sin6_addr.s6_addr32[3] |=3D 2244 (ib->ia_addr.sin6_addr.s6_addr32[3] & ~mask.s6_addr32[3]); --=20 You are receiving this mail because: You are the assignee for the bug.=