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.
Details
Details
- Reviewers
markj kp tuexen - Group Reviewers
transport - Commits
- rGd0f4c558f920: udp: slightly refactor udp_append()
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Michael had fixed this bug at Netflix several years ago, but we forgot to upstream that. Merging in FreeBSD, I found our code nicer, especially no extra INP_RUNLOCK(). Converting to bool and comment editing is my today's additions.