Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Feb 2025 03:40:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 284872] [carp] Missing byte order correction causing certain unicast announcements to have invalid destination MAC address
Message-ID:  <bug-284872-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284872

            Bug ID: 284872
           Summary: [carp] Missing byte order correction causing certain
                    unicast announcements to have invalid destination MAC
                    address
           Product: Base System
           Version: 14.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: brett.merrick@itcollective.nz

sys/netinet/ip_carp.c - line 1248:

if (IN_MULTICAST(sc->sc_carpaddr.s_addr)) m->m_flags |=3D M_MCAST;=20

Should read:

if (IN_MULTICAST(ntohl(sc->sc_carpaddr.s_addr))) m->m_flags |=3D M_MCAST;=20

At present, any announcement where the peer IP address ends in .244-.239 ra=
ther
than begins with 244.-239. get sent to an invalid multicast destination MAC
address.

eg.

Frame 17: 70 bytes on wire (560 bits), 70 bytes captured (560 bits)
Ethernet II, Src: Microsoft_de:ed:00 (00:15:5d:de:ed:00), Dst:
IPv4mcast_28:c9:ef (01:00:5e:28:c9:ef)
Internet Protocol Version 4, Src: 192.168.201.238, Dst: 192.168.201.239
Common Address Redundancy Protocol

--=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-284872-227>