]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
epair: Avoid loading m_flags into a short
authorMark Johnston <markj@FreeBSD.org>
Mon, 6 Mar 2023 14:39:17 +0000 (09:39 -0500)
committerMark Johnston <markj@FreeBSD.org>
Wed, 15 Mar 2023 13:39:34 +0000 (09:39 -0400)
commit6b488550ee57dc09b7d564aa22f9feb61778a89f
treec5a75454e166558ee059319377b9b4dc2fb538d4
parent069fb41af5bca224caf6f96b50fed55fa7755c5b
epair: Avoid loading m_flags into a short

The m_flags field of struct mbuf is 24 bits wide and so gets truncated
in a couple of places in the epair code.  Instead of preserving the
entire flag set, just remember whether M_BCAST or M_MCAST is set.

Approved by: re (cperciva)
MFC after: 1 week
Sponsored by: Klara, Inc.

(cherry picked from commit 48227d1c6db8fceaceebbf8578612302d64ca170)
(cherry picked from commit c3bd32f225ec093ba0f7cd7fc1a000b02aad5211)
sys/net/if_epair.c