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
F173176414: D44582.diff
Thu, Sep 24, 3:07 AM
Unknown Object (File)
Wed, Sep 23, 4:52 AM
Unknown Object (File)
Wed, Sep 16, 7:26 AM
Unknown Object (File)
Sat, Sep 12, 8:17 PM
Unknown Object (File)
Sun, Sep 6, 5:59 PM
Unknown Object (File)
Sun, Sep 6, 1:01 AM
Unknown Object (File)
Wed, Aug 26, 2:46 AM
Unknown Object (File)
Aug 23 2026, 10:27 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