Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2021 21:30:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253005] Received IPv6 RA message with plen !=64 in PIO is not processed.
Message-ID:  <bug-253005-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253005-227>