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)
Wed, Aug 26, 2:46 AM
Unknown Object (File)
Sun, Aug 23, 10:27 PM
Unknown Object (File)
Wed, Aug 12, 6:04 PM
Unknown Object (File)
Tue, Aug 11, 10:27 PM
Unknown Object (File)
Tue, Aug 11, 7:13 PM
Unknown Object (File)
Tue, Aug 11, 2:51 PM
Unknown Object (File)
Tue, Aug 11, 2:48 PM
Unknown Object (File)
Mon, Aug 10, 7:38 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