Page MenuHomeFreeBSD

tftpd: Simplify packet drop macro
ClosedPublic

Authored by des on May 18 2026, 9:35 PM.
Tags
None
Referenced Files
F163050966: D57076.id178411.diff
Sun, Jul 19, 3:22 PM
F163038734: D57076.id178411.diff
Sun, Jul 19, 12:20 PM
Unknown Object (File)
Thu, Jul 16, 4:14 AM
Unknown Object (File)
Wed, Jul 15, 7:22 AM
Unknown Object (File)
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
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