Page MenuHomeFreeBSD

if_wg: export tx_bytes, rx_bytes, and last_handshake
ClosedPublic

Authored by kevans on Mar 9 2021, 11:21 AM.
Tags
None
Referenced Files
F132391231: D29143.id85419.diff
Thu, Oct 16, 12:36 PM
F132391226: D29143.id.diff
Thu, Oct 16, 12:36 PM
F132391224: D29143.id85382.diff
Thu, Oct 16, 12:36 PM
F132337229: D29143.diff
Thu, Oct 16, 12:50 AM
Unknown Object (File)
Thu, Sep 25, 2:07 AM
Unknown Object (File)
Sat, Sep 20, 10:20 AM
Unknown Object (File)
Sep 14 2025, 1:40 PM
Unknown Object (File)
Sep 4 2025, 7:46 PM
Subscribers

Details

Summary

The names are self-explanatory; these are currently only used by the
wg(8) tool, but they are handy data points to have.

MFC after: 3 days
Discussed with: decke

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 9 2021, 11:38 AM
sys/dev/if_wg/module/module.c
487

Why is this conditional?

sys/dev/if_wg/module/module.c
487

My working thought process was to avoid the nvpair allocation since the wg(8) side will assume '0' if these are omitted -- their absence is insignificant.