Page MenuHomeFreeBSD

if_wg: choose a port at random if zero/omitted
AbandonedPublic

Authored by kevans on Mar 9 2021, 1:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 29, 4:35 PM
Unknown Object (File)
Sun, Oct 19, 1:34 AM
Unknown Object (File)
Oct 10 2025, 10:58 AM
Unknown Object (File)
Oct 10 2025, 10:58 AM
Unknown Object (File)
Oct 10 2025, 4:22 AM
Unknown Object (File)
Oct 3 2025, 9:51 PM
Unknown Object (File)
Oct 1 2025, 8:36 PM
Unknown Object (File)
Sep 27 2025, 12:25 AM
Subscribers

Details

Summary

This lines up with the Linux implementation; do the sobind() and fetch
the address after the fact so that we can use a consistent port for
udp6 and export it to userland.

MFC after: 3 days

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37694
Build 34583: arc lint + arc unit