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)
Tue, Oct 22, 6:27 AM
Unknown Object (File)
Tue, Oct 22, 6:27 AM
Unknown Object (File)
Tue, Oct 22, 6:27 AM
Unknown Object (File)
Tue, Oct 22, 6:20 AM
Unknown Object (File)
Sep 19 2024, 5:19 PM
Unknown Object (File)
Sep 19 2024, 11:36 AM
Unknown Object (File)
Sep 16 2024, 6:32 PM
Unknown Object (File)
Sep 16 2024, 10:20 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