]> 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>
Mon, 13 Mar 2023 15:53:16 +0000 (11:53 -0400)
commitc3bd32f225ec093ba0f7cd7fc1a000b02aad5211
tree104564cc09f6d15872e45300004d4e69c562b0f7
parent25e0844eda663f82f270b959df9e0935982044d3
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.

MFC after: 1 week
Sponsored by: Klara, Inc.

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