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, Apr 20, 10:00 PM
Unknown Object (File)
Fri, Apr 17, 6:34 AM
Unknown Object (File)
Thu, Apr 16, 4:11 AM
Unknown Object (File)
Sat, Apr 11, 1:23 PM
Unknown Object (File)
Sat, Apr 11, 12:51 PM
Unknown Object (File)
Tue, Apr 7, 3:20 AM
Unknown Object (File)
Mon, Apr 6, 7:14 PM
Unknown Object (File)
Sun, Apr 5, 5:16 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