]> 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, 6 Mar 2023 17:39:11 +0000 (12:39 -0500)
commit48227d1c6db8fceaceebbf8578612302d64ca170
tree5d0ff571a7f0187ea602dff0eedb9b84bc66eb8a
parent506336f2cd1fa0a3ba94bc247d7fad1a71d43ac2
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.
sys/net/if_epair.c