Page MenuHomeFreeBSD

wg: Use ENETUNREACH when transmitting to a non-existent peer
ClosedPublic

Authored by markj on Apr 1 2024, 3:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 5, 7:21 PM
Unknown Object (File)
May 15 2026, 4:26 PM
Unknown Object (File)
May 14 2026, 11:15 AM
Unknown Object (File)
May 14 2026, 11:15 AM
Unknown Object (File)
May 13 2026, 7:52 AM
Unknown Object (File)
May 12 2026, 12:14 PM
Unknown Object (File)
Apr 26 2026, 3:54 PM
Unknown Object (File)
Apr 20 2026, 10:00 PM
Subscribers

Details

Summary

The old errno value used is specifically for Capsicum and shouldn't be
co-opted in this way. It has special handling in the generic syscall
layer (see syscallret()). OpenBSD returns ENETUNREACH in this case;
let's do the same thing.

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable