Page MenuHomeFreeBSD

libalias unused var fix proposal
Needs ReviewPublic

Authored by devnexen_gmail.com on Dec 23 2021, 10:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 21, 4:01 AM
Unknown Object (File)
Fri, Oct 3, 2:14 AM
Unknown Object (File)
Sep 17 2025, 3:47 AM
Unknown Object (File)
Sep 13 2025, 7:15 AM
Unknown Object (File)
Sep 12 2025, 2:17 AM
Unknown Object (File)
Sep 1 2025, 9:03 PM
Unknown Object (File)
Aug 27 2025, 1:04 PM
Unknown Object (File)
Aug 24 2025, 4:10 AM

Details

Reviewers
sobomax
donner
Summary

reusing find_handler return for UDP/TCP

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Only alias_nbt.c may return any negative result. Even if no handler is suitable, the returned value from alias_mod.c would be positive (2). Every other handler always returns zero.

So the question is, what's the result of passing through a packet which can't be handled by a special purpose handler? Is it better to send out the packet with the un-natted original IP addresses or should be packet be processed without any internal inspection? Is PKT_ALIAS_ERROR more appropriate?