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)
Mon, May 12, 8:26 AM
Unknown Object (File)
Sun, Apr 27, 10:34 AM
Unknown Object (File)
Sun, Apr 27, 1:19 AM
Unknown Object (File)
Sat, Apr 26, 5:55 PM
Unknown Object (File)
Apr 18 2025, 8:04 PM
Unknown Object (File)
Mar 16 2025, 4:34 PM
Unknown Object (File)
Feb 6 2025, 8:22 PM
Unknown Object (File)
Jan 29 2025, 5:36 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