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, Oct 14, 4:03 AM
Unknown Object (File)
Sun, Oct 11, 6:03 PM
Unknown Object (File)
Sun, Oct 11, 5:48 PM
Unknown Object (File)
Sun, Sep 27, 9:46 PM
Unknown Object (File)
Sat, Sep 26, 9:00 PM
Unknown Object (File)
Thu, Sep 24, 3:07 AM
Unknown Object (File)
Wed, Sep 23, 4:52 AM
Unknown Object (File)
Sep 16 2026, 7:26 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