HomeFreeBSD

udp: slightly refactor udp_append()

Description

udp: slightly refactor udp_append()

Make it bool. Reword the comment, add note that mbuf is always consumed.
In case tunnel consumed the mbuf, don't INP_RUNLOCK(), behave just like
all the other normal exits from the function.

Reviewed by: tuexen, kp, markj
Differential Revision: https://reviews.freebsd.org/D52171

Details

Provenance
glebiusAuthored on Sep 1 2025, 4:33 PM
Reviewer
tuexen
Differential Revision
D52171: udp: slightly refactor udp_append()
Parents
rGc8a5df48de6f: udp: don't leak mbuf if tunnel didn't consume and inpcb is gone
Branches
Unknown
Tags
Unknown