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, May 15, 4:26 PM
Unknown Object (File)
Thu, May 14, 11:15 AM
Unknown Object (File)
Thu, May 14, 11:15 AM
Unknown Object (File)
Wed, May 13, 7:52 AM
Unknown Object (File)
Tue, May 12, 12:14 PM
Unknown Object (File)
Apr 26 2026, 3:54 PM
Unknown Object (File)
Apr 20 2026, 10:00 PM
Unknown Object (File)
Apr 17 2026, 6:34 AM
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