Page MenuHomeFreeBSD

tftpd: Simplify packet drop macro
ClosedPublic

Authored by des on May 18 2026, 9:35 PM.
Tags
None
Referenced Files
F162637701: D57076.diff
Wed, Jul 15, 7:22 AM
F162637700: D57076.diff
Wed, Jul 15, 7:22 AM
Unknown Object (File)
Tue, Jul 14, 4:14 PM
Unknown Object (File)
Sun, Jul 12, 6:15 PM
Unknown Object (File)
Tue, Jul 7, 3:20 AM
Unknown Object (File)
Mon, Jul 6, 7:47 AM
Unknown Object (File)
Sun, Jul 5, 9:58 PM
Unknown Object (File)
Sun, Jul 5, 3:47 PM
Subscribers

Details

Summary

The first argument is always the function name, for which we can simply
use func. This leaves only the optional return value, so we can use
a single variadic macro instead of two nearly-identical copies.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 73208
Build 70091: arc lint + arc unit