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
F132246116: D44582.id.diff
Wed, Oct 15, 3:54 AM
Unknown Object (File)
Tue, Oct 14, 6:36 PM
Unknown Object (File)
Tue, Oct 14, 6:36 PM
Unknown Object (File)
Tue, Oct 14, 7:17 AM
Unknown Object (File)
Tue, Oct 7, 8:34 PM
Unknown Object (File)
Sat, Oct 4, 9:27 AM
Unknown Object (File)
Tue, Sep 23, 9:33 AM
Unknown Object (File)
Sep 10 2025, 10:06 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