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
F115661333: D44582.diff
Sat, Apr 26, 5:55 PM
Unknown Object (File)
Fri, Apr 18, 8:04 PM
Unknown Object (File)
Mar 16 2025, 4:34 PM
Unknown Object (File)
Feb 6 2025, 8:22 PM
Unknown Object (File)
Jan 29 2025, 5:36 PM
Unknown Object (File)
Dec 28 2024, 10:38 PM
Unknown Object (File)
Dec 11 2024, 8:53 AM
Unknown Object (File)
Dec 11 2024, 8:51 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 56860
Build 53748: arc lint + arc unit