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)
Sat, Dec 28, 10:38 PM
Unknown Object (File)
Wed, Dec 11, 8:53 AM
Unknown Object (File)
Wed, Dec 11, 8:51 AM
Unknown Object (File)
Tue, Dec 10, 10:53 PM
Unknown Object (File)
Tue, Dec 10, 1:57 PM
Unknown Object (File)
Nov 30 2024, 2:05 PM
Unknown Object (File)
Nov 15 2024, 10:41 PM
Unknown Object (File)
Oct 22 2024, 6:27 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